Installation environment: CentOS-6.5
Installation Method: source code Installation
Software: apache-tomcat-8.0.0.RC3.tar.gz
Prerequisites
Install Tomcat
Upload the apache-tomcat-8.0.0.rc3.tar.gz file to/usr/local and perform the following operations:
[[Email protected] ~] # Cd/usr/local
[[Email protected] ~] # Tar-zxv-F apache-tomcat-8.0.0.RC3.tar.gz // extract the compressed package
[[Email protected] ~] # Rm-RF apache-tomcat-8.0.0.RC3.tar.gz // Delete package
[[Email protected] ~] # Mv apache-tomcat-8.0.0.RC3 Tomcat
Start Tomcat
Perform the following operations:
[[Email protected] ~] #/Usr/local/tomcat/bin/startup. Sh // start Tomcat
Using catalina_base:/usr/local/tomcat
Using catalina_home:/usr/local/tomcat
Using catalina_tmpdir:/usr/local/tomcat/temp
Using jre_home:/usr/Java/jdk1.7.0 _ 45/JRE
Using classpath:/usr/local/tomcat/bin/Bootstrap. jar:/usr/local/tomcat/bin/tomcat-juli.jar
The above information indicates that the instance has been started successfully.
Open firewall port 8080
Add port 8080 to the firewall configuration and perform the following operations:
[[Email protected] ~] /Sbin/iptables-I input-P TCP -- dport 8080-J accept # enable port 8080
[[Email protected] ~] /Etc/rc. d/init. d/iptables save # Save the Configuration
[[Email protected] ~] /Etc/rc. d/init. d/iptables restart # restart the Firewall
Verify tomcat installation and running
Check whether Tomcat is running properly at the following address:
Http: // 192.168.10.138: 8080/
The Tomcat System Interface is displayed, indicating that the installation is successful!
Stop Tomcat
[[Email protected] ~] #/Usr/local/tomcat/bin/shutdown. Sh // stop Tomcat
3. centos 6.5 system installation and configuration Tomcat 8 detailed process