Linux CentOS 6.6 Installation Tomcat__linux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.