My reference Notes
VM instances
Red Hat Enterprise Linux 8
yum -y install bitstream-vera-fonts
yum -y install fonts-*
sudo yum install java-11-openjdk-devel
sudo yum install wget
sudo yum install vim
yum install -y mlocate
updatedb
cd /home
mkdir tomcat
cd /tomcat
wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.20/bin/apache-tomcat-9.0.20.tar.gz
tar xzf apache-tomcat-9.0.20.tar.gz
chmod -R 777 .
echo "export CATALINA_HOME="/home/tomcat/apache-tomcat-9.0.20"" >> ~/.bashrc
source ~/.bashrc
vim /tomcat/apache-tomcat-9.0.20/conf/tomcat-users.xml
Add the following
<!-- user manager can access only manager section -->
<role rolename="manager-gui" />
<user username="manager" password="manager" roles="manager-gui" />
<!-- user admin can access manager and admin section both -->
<role rolename="admin-gui" />
<user username="admin" password="admin" roles="manager-gui,admin-gui" />
mv /tmp/aws-china-poc.war /home/tomcat/apache-tomcat-9.0.20/webapps/
sh /home/tomcat/apache-tomcat-9.0.20/bin/startup.sh
sudo yum install mysql
Font install steps:
-------------------
yum install curl cabextract xorg-x11-font-utils fontconfig
wget https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-2.1-1.noarch.rpm
yum install msttcore-fonts-2.1-1.noarch.rpm
chmod u=rwx,g=r,o=r vega_portal.log
chmod 744 vega_portal.log
Give full rights to folder/file.
chmod 777 foldername /file name
mysql --host=34.134.247.236 --user=root --password
vegamgr2021@
CREATE SCHEMA `vegamgr` DEFAULT CHARACTER SET utf8 ;
#dig command not found redhat
sudo yum install bind-utils
-- How to check port 80 used ?
netstat -lnp | grep 80
A very basic example to change port 8080 to 80 would be:
1. Stop tomcat
2. Goto Tomcat/conf and take a backup of server.xml file
Open server.xml and you will finde entries like <Connector port="8080" and <Connector executor="8080".
Change port from 8080 to 80 . (Verify that there is no other application listening on port 80)
(this will make tomcat listen on default port which is 80, and hence will not require a port number to mention after midtierserver name)
3.Start tomcat
Comments
Post a Comment