First, Prepare:
1, Linux Server one (CentOS6.5 64-bit operating system)
2, Tomcat software (can download http://apache.dataguru.cn/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz on the website)
3, JDK (also available on the official website download http://www.oracle.com/)
[The software is downloaded to the/usr/local/src/directory]
Second, installation steps:
1. Install the JDK (install the JDK before you install Tomcat or you will not be able to run)
Tar zxvfjdk-8u60-linux-x64.tar.gz
MV jdk1.8.0_60/usr/local/
Setting environment variables
Vim/etc/profile.d/java.sh Write the content:
Java_home=/usr/local/jdk1.8.0_60
java_bin= $JAVA _home/bin
Jre_home= $JAVA _home/jre
Path= $PATH: $JAVA _bin: $JRE _home/bin
Classpath= $JAVA _home/lib: $JRE _home/lib: $JRE _home/lib/charsets.jar
Source/etc/profile.d/java.sh can take effect
Java-version to verify success
2. Install Tomcat
Unzip the downloaded Tomcat software archive package
Tar zxvf apache-tomcat-7.0.64.tar.gz
Move to/usr/local/:
MV apache-tomcat-7.0.64/usr/local/
Start Tomcat: Execute the following command
/usr/local/apache-tomcat-7.0.64/bin/startup.sh
You can see the Tomcat page by entering http://ip:8080/in the browser address bar
This article is from the "10484588" blog, please be sure to keep this source http://10494588.blog.51cto.com/10484588/1725895
Tomcat Service setup under Linux