Linux Install Tomcat

Source: Internet
Author: User

Toss for a long time, in accordance with the official website installation process installed more than 3 times, the discovery is still not successful, the final discovery is the Linux machine itself problem, because I use the company's virtual machine, it is possible that the machinery itself in the process of a migration occurred problems, resulting in my tragedy. The final solution was to re-setup virtual machine and to have a smooth and successful installation.

This artical shows the install, configure Tomcat in Linux machine. Noted that all of steps is based on root user.

Step 1:verify Java version, if no Java found, please install JDK

Java-version

Step 2:download Tomcat

Step 3:unzip the package, and move it to target folder

Tar zxf apache-tomcat-8.0.36.tar.gz

Cp-r apache-tomcat-8.0.36/*/usr/local/tomcat

Step 4:add Catalina_home

VI ~/.BASHRC

#!/bin/bashcatalina_home=/usr/local/Tomcat

SOURCE ~/.BASHRC

Step 5:change Execute permissions for following files

chmod +x $CATALINA _home/bin/startup.sh
chmod +x $CATALINA _home/bin/shutdown.sh
chmod +x $CATALINA _home/bin/catalina.sh

Step 6:start Tomcat

$CATALINA _home/bin/startup.sh

Step 7:check Web site

http://localhost:8080

Step 8:start Catalina Service

sudo $CATALINA _home/bin/catalina.sh start

Step 9:deploy web App or Web service into $CATALINA _home/webapps folder.

Issues:

    • Cannot access Web site.
    • Cannot stop Catalina service.
    • Could Not contact localhost:8005

The problems is sovled by formatting Linux server.

Linux Install Tomcat

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.