Set up Tomcat 7 in CentOS6.4

Source: Internet
Author: User
Check java version information java-versionjavaversion & quot; 1.7.0 _ 65 & quot; OpenJDKRuntimeEnvironment (rhel-2.5.1.2.el6_5-x86_64u65-b17) OpenJ
  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 decompress 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. access http: // ip: 8080

 

5. set a user account

 
 
 
 
 
 
 

 

6. restart the tomcat service.

 

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

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.