Install and configure Tomcat-7 in CentOS-7.0.
Installation instructions
Installation environment: CentOS-7.0.1406
Installation Method: source code Installation
Software: apache-tomcat-7.0.29.tar.gz
: Http://tomcat.apache.org/download-70.cgi
Prerequisites
The system must have JDK6 + installed, see install and configure JDK-7 in Linux CentOS 6.5
Install tomcat
Upload the apache-tomcat-7.0.29.tar.gz file to/usr/local and perform the following operations:
The Code is as follows:
[Root @ bkjia local] # cd/usr/local
[Root @ bkjia local] # wget http://apache.fayea.com/apache-mirror/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
[Root @ bkjia local] # tar-zxv-f apache-tomcat-7.0.29.tar.gz // extract the compressed package
[Root @ bkjia local] # rm-rf apache-tomcat-7.0.29.tar.gz // Delete compressed package
[Root @ bkjia local] # mv apache-tomcat-7.0.29 tomcat
Start Tomcat
Perform the following operations:
The Code is as follows:
[Root @ bkjia ~] #/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/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:
[Root @ bkjia ~] # Vi +/etc/sysconfig/iptables
# Add the following code
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT
Restart Firewall
[Root @ bkjia java] # service iptables restart
Verify Tomcat installation and running
Check whether tomcat is running properly at the following address:
Http: // 192.168.15.231: 8080/
The tomcat System Interface is displayed, indicating that the installation is successful!
Stop Tomcat
[Root @ bkjia ~] #/Usr/local/tomcat/bin/shutdown. sh // stop tomcat
Install and configure the Tomcat environment in CentOS 6.6
Install JDK + Tomcat in RedHat Linux 5.5 and deploy Java Projects
Tomcat authoritative guide (second edition) (Chinese/English hd pdf + bookmarks)
Tomcat Security Configuration and Performance Optimization
How to Use Xshell to view Tomcat real-time logs with Chinese garbled characters in Linux
Install JDK and Tomcat in CentOS 64-bit and set the Tomcat Startup Procedure
Install Tomcat in CentOS 6.5
Tomcat details: click here
Tomcat: click here
This article permanently updates the link address: