"Linux" Tomcat installation

Source: Internet
Author: User

Tags: lib mil technology rename PNG line Ali Pac down

  1. After logging in to Linux, switch directories to /usr/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


    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


    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


  7. start Tomcat

    switch to bin directory


    start Tomcat

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

  8. Access Tomcat, default port is 8080


    Now that Tomcat is installed successfully

  9. Stop Tomcat

    switch to bin directory


    Stop Tomcat

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

"Linux" Tomcat installation

Related Article

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.