Install Tomcat in CentOS environment

Source: Internet
Author: User
1. to use JDK to install JDK Tomcat, see: JDK. You can use the wget command to download the SDK from Linux. For example: # cd/ho 1. install JDK

The JDK environment is required for Tomcat.

JDK installation details refer to: http://blog.csdn.net/irokay/article/details/50528604

2. download Tomcat

Access the http://tomcat.apache.org and select the appropriate version of Tomcat download. You can use the wget command to download the SDK from Linux. For example:

# cd /home/sw# wget http://apache.fayea.com/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
3. go to the/opt directory and unzip and install tomcat.
# cd /opt# tar zxf /home/sw/apache-tomcat-7.0.57.tar.gz# ln -s ./apache-tomcat-7.0.57/ ./tomcat7
4. configure tomcat

If you need to change the port 8080, go to/opt/tomcat7/conf, Open server. xml, and change port 8080 to the desired port.

If you want to change the JVM settings (JAVA_OPTS) to solve or prevent memory overflow (OOO), refer to the article:

Http://blog.csdn.net/irokay/article/details/50528732

5. start Tomcat and test
# cd /opt/tomcat7/bin# ./catalina.sh start

To view the startup log, run the following command:

# tail -f ../logs/catalina.out

You can use Ctrl + C to terminate the tail-f command at any time.

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.