Install apache-tomcat-7.0.47.tar.gz under redhat.

Source: Internet
Author: User

Upload to the/usr/tomcat7 directory

Cp/home/toto/Desktop/apache-tomcat-7.0.47.tar.gz/usr/tomcat7/

2. Go to the Tomcat 7 directory.

Cd/usr/tomcat7

3. Unzip tomcat

Tar-xzvf apache-tomcat-7.0.47.tar.gz

4. Check whether tomcat is enabled for redhat,

Ps-ef | grep tomcat found that tomcat was not started

5. start tomcat by entering the bin directory of tomcat and executing the following command:

./Startup. sh

To disable tomcat, follow these steps:

./Shutdown. sh

6. To view the ip address of a machine, use ifconfig.

7. View tomcat startup status

[Root @ localhost bin] # ps-ef | grep tomcat
Root 2731 1 1 00:00:07 pts/0/usr/java/jdk1.6.0 _ 45/bin/java-Djava. util. logging. config. file =/usr/tomcat7/apache-tomcat-7.0.47/conf/logging. properties-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. endorsed. dirs =/usr/tomcat7/apache-tomcat-7.0.47/endorsed-classpath/usr/tomcat7/apache-tomcat-7.0.47/bin/bootstrap. jar:/usr/tomcat7/apache-tomcat-7.0.47/bin/tomcat-juli.jar-Dcatalina. base =/usr/tomcat7/apache-tomcat-7.0.47-Dcatalina. home =/usr/tomcat7/apache-tomcat-7.0.47-Djava. io. tmpdir =/usr/tomcat7/apache-tomcat-7.0.47/temp org. apache. catalina. startup. bootstrap start
Root 2894 2501 0 00:00:00 pts/0 grep tomcat

If the preceding status indicates that tomcat is started


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.