This is illustrated by the example of installing apache-tomcat-7.0.62.tar.gz in the CentOS system. Other versions are available for download from our website.
1. Download and install
Download the specified version from the official website to the server directory, this machine will download the Tomcat installation files into the/data/soft directory.
Go to file directory
# Cd/data/soft
Unzip the installation file
#tar-ZXVF apache-tomcat-7.0.62.tar.gz
A apache-tomcat-7.0.62 folder is generated after decompression.
Copy the resulting folder to the specified installation directory (this machine is/usr/local).
#cp-RF Apache-tomcat-7.0.62/usr/local/tomcat
2. Start Tomcat
Start command
#cd/usr/local/tomcat/bin
#./startup.sh
Viewing the boot log
#cd/usr/local/tomcat/logs
#tail-F Catalina.out
3. Access Tomcat
Access address format http://ip:port, if it is the default machine, the Access address is: http://localhost:8080.
If there is no access under Tomcat Normal startup, it is possible that the Linux system's firewall does not have port 8080 open and then access it.
Linux under Tomcat installation