cnetos6.4 Build Tomcat7

Source: Internet
Author: User

    1. Check Java version information

Java-version
Java Version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-bit Server VM (build 24.65-b04, Mixed mode)

If not, install:

Yum-y Install JAVA-1.7.0-OPENJDK


2. Download and unzip Tomcat

# cd/tmp# wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz


# tar Xzf apache-tomcat-7.0.54.tar.gz# mv APACHE-TOMCAT-7.0.54/USR/LOCAL/TOMCAT7

3. Start Tomcat


# cd/usr/local/tomcat7#./bin/startup.sh

[Output EXAMPLE]

using catalina_base:   /usr/local/tomcat7using catalina_home:   /usr/ local/tomcat7using catalina_tmpdir: /usr/local/tomcat7/tempusing jre_home:         /opt/jdk1.8.0_05/jreUsing CLASSPATH:        /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jartomcat started. 


4. Visit http://ip:8080

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/41/1A/wKiom1PQtxawE6tWAANHDNLLdSQ751.jpg "title=" QQ picture 20140724153359.jpg "alt=" Wkiom1pqtxawe6twaanhdnlldsq751.jpg "/>


5. Set up user accounts

<role rolename= "Admin-gui"/><role rolename= "Admin-script"/><role rolename= "Manager-gui"/>< Role rolename= "Manager-script"/><role rolename= "manager-jmx"/><role rolename= "Manager-status"/> <user username= "Tomcat" password= "Tomcat" roles= "Manager-gui,manager-script,manager-jmx,manager-status, Admin-script,admin-gui "/>


6. Restart the Tomcat service


#./bin/shutdown.sh #./bin/startup.sh




This article is from "Rookie play ops" blog, please be sure to keep this source http://5323197.blog.51cto.com/5313197/1529716

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.