Additional Tomcat and Apache installations
```html
Given that the previous article has raised certain doubts for me, I have decided to create this entry to show a more meticulous process for those not familiar with CentOS.
Installation of Java Virtual Machine:
yum clean all
yum update -y
yum install -y java-1.8.0-openjdk-devel
Installation of net-tools
yum -y install net-tools
Using the command ifconfig, we will know the IP address to connect via SSH (Secure FTP) through an FTP client like Filezilla.
Once Tomcat is installed
chown tomcat -R /opt/tomcat/
Once Apache is installed, these ports must be opened to access through the browser:
yum install telnet
telnet 127.0.0.1 8080
curl http://127.0.0.1:8080/manager
ps -aux | grep tomcat
netstat
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8443/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
cat tomcat-users.xml
cd ..
./bin/shutdown.sh
./bin/startup.sh
tail -600f logs/catalina.out
./bin/shutdown.sh
vim conf/server.xml
vi conf/server.xml
yum install vim
vim
vim conf/server.xml
ps -aux | grep tomcat
kill -9 11909
ps -aux | grep tomcat
./bin/startup.sh
tail -600f logs/catalina.out
netstat
netstat |grep 8080
ps -aux | grep tomcat
vim conf/server.xml
vim conf/tomcat-users.xml
ls webapps/
cat conf/server.xml
vim conf/server.xml
./bin/shutdown.sh
./bin/startup.sh
tail -600f logs/catalina.out
./bin/startup.sh
tail -600f logs/catalina.out
yum install tomcat-native.x86_64
vim conf/server.xml
./bin/shutdown.sh
ps -aux | grep tomcat
./bin/startup.sh ; tail -5000f logs/catalina.out
find / -name "httpd"
cd /etc/httpd/
ls
cd run/
ls
cd ..
cd conf
ls
cd mo
cd ..
cd modules/
ls
:q
yum remove
yum remove httpd
yum install httpd
yum install httpd-devel apr apr-devel apr-util apr-util-devel gcc gcc-c++ make autoconf libtool
Shell
mkdir -p /opt/mod_jk/
cd /opt/mod_jk
wget http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz
tar -xvzf tomcat-connectors-1.2.41-src.tar.gz
cd tomcat-connectors-1.2.41-src/native
mkdir -p /opt/mod_jk/
ls
wget http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz
yum install wget
wget http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz
wget http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.44-src.tar.gz
tar -xvzf tomcat-connectors-1.2.41-src.tar.gz
tar -xvzf tomcat-connectors-1.