"Linux" Tomcat installation

Source: Internet
Author: User
  1. After logging in to Linux, switch directories to /usr/local

    Cd/user/local

  2. Create a new folder in the /usr/local directory servers to store Tomcat files

    mkdir servers

  3. in folder Servers download tomcat file ( Tomcat version according to its own needs to replace the line)

    First switch directory to servers

    CD servers

    download online Tomcat

    WGET 

    http:// mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.90/bin/apache-tomcat-7.0.90.tar.gz 

  4. Unzip Tomcat to the current directory

    sudo tar xvf apache-tomcat-7.0.90.tar.gz

    Rename to Tomcat

    MV apache-tomcat-7.0.90 Tomcat

    Delete a compressed package

    RM apache-tomcat-7.0.90.tar.gz

  5. To edit a configuration file, configure environment variables

    Vim/etc/profile

    Add to:

    Export Catalina_home=/usr/local/servers/tomcat

    Export classpath=.: $JAVA _home/lib: $CATALINA _home/lib

    Export path= $PATH: $CATALINA _home/bin

    Press ESC, enter : Wq, Save and exit

  6. Reload the system configuration file

    Source/etc/profile

  7. start Tomcat

    switch to bin directory

    Cd/usr/local/servers/tomcat/bin

    start Tomcat

    SH startup.sh or ./startup.sh or ./catalina.sh Start

  8. Access Tomcat, default port is 8080

    http://yourIP:8080/

    Now that Tomcat is installed successfully

  9. Stop Tomcat

    switch to bin directory

    Cd/usr/local/servers/tomcat/bin

    Stop Tomcat

    SH shutdown.sh or ./shutdown.sh or ./catalina.sh Stop

"Linux" Tomcat installation

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.