Linux installation tomcat7.0.61, Linux CentOS 6.6 installation tomcat7.0.61, Linux Redhat installation tomcat7.0.61.
The Linux settings tomcat boot from boot.
1. Download Tomcat
Tomcat official website Download tomcat installation package, download file format for. tar.gz installation package.
This installation example downloads a tomcat version of 7.0.61 and the other versions are installed in the same way.
Our department has downloaded apache-tomcat-7.0.61.tar.gz
Download Address: http://tomcat.apache.org/
2. Install Tomcat
Enter the directory where the Tomcat installation package is located and unpack the installation package. Command line:
Tar xvf apache-tomcat-7.0.61.tar.gz
[Root@localhost desktop]# tar xvf apache-tomcat-7.0.61.tar.gz
Copy the extracted apache-tomcat-7.0.61 folder into the/usr/local/directory and automatically rename the folder to Tomcat. Command line:
Cp-r apache-tomcat-7.0.61 /usr/local/tomcat
[Root@localhost desktop]# cp-r Apache-tomcat-7.0.61/usr/local/tomcat
Go to Tomcat's Bin directory and run startup.sh to start Tomcat. Command line:
cd/usr/local/tomcat/bin/
./startup.sh
[Root@localhost desktop]# cd/usr/local/tomcat/bin/
[Root@localhost bin]#./startup.sh
Start Tomcat Displays the following information:
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using jre_home:/usr
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
Tomcat installation completed, access to http://localhost:8080/in the browser, display Tomcat default page, indicating that the installation was successful.
If you want to stop Tomcat, run shutdown.sh to stop Tomcat. Command line:
cd/usr/local/tomcat/bin/
./shutdown.sh
[Root@localhost bin]#/usr/local/tomcat/bin/shutdown.sh
Stop Tomcat Displays the following information:
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using jre_home:/usr
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Set up tomcat to boot from, modify rc.local file, command line: vi/etc/rc.d/rc.local
Vi/etc/rc.d/rc.local
Add the following configuration at the end:
Export jdk_home=/usr/java/jdk1.7.0_79
export java_home=/usr/java/jdk1.7.0_79
/usr/local/tomcat/bin/ startup.sh
See if Tomcat is started and see if Tomcat is turned off.
[ROOT@CENTOS6 bin]# ps-ef|grep Java
If similar information appears, Tomcat has started.
Root 11029 1 10:10 pts/1 00:00:51/usr/java/jdk1.7.0_79/bin/java-djava.util.logging.config.file=/h Ome/lytc/tomcat/conf/logging.properties-djava.util.logging.manager=org.apache.juli.classloaderlogmanager- djava.endorsed.dirs=/home/lytc/tomcat/endorsed-classpath/home/lytc/tomcat/bin/bootstrap.jar:/home/lytc/tomcat/ bin/tomcat-juli.jar-dcatalina.base=/home/lytc/tomcat-dcatalina.home=/home/lytc/tomcat-djava.io.tmpdir=/home/ Lytc/tomcat/temp org.apache.catalina.startup.Bootstrap Start
Kill the Tomcat process
Kill-9 11029
If similar information appears, Tomcat is closed.
[ROOT@CENTOS6 bin]# ps-ef|grep Java
Root 10915 10673 0 10:07 pts/1 00:00:00 grep java
NEW: http://blog.csdn.net/xinxin19881112/article/details/46817039