Installing Tomcat under the Centos-linux system

Source: Internet
Author: User

Step 1: Extract Tomcat

Command:

Unzip Apache-tomcat-8.5.20.zip

Step 2: Move Tomcat under "/usr/local/src/java/tomcat8.5" and rename

Command:

MV apache-tomcat-8.5.20/usr/local/src/java/tomcat8.5

Step 3: Grant execution permissions, because there is no configuration environment variables, so only in the corresponding Bin directory operation, the following command first line only need to be executed at the time of installation, see "Tomcat started", that is, the boot success.

Command:

chmod u+x *.sh

./startup.sh

Step 4: Configure the Firewall

Command:

Vim/etc/sysconfig/iptables

To add a corresponding port to the configuration file:

-A input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT

Note: If the row location is the same, the other computers will not be able to access, which is equivalent to an invalid configuration, detected as:

To turn off the firewall:

Service Iptables Stop

Access to other computers, which proves that the appropriate configuration for the firewall is invalid if the access is successful.

To turn on the firewall:

Service Iptables Start

Step 5: Restart the Firewall service

Command:

Service Iptables Restart

Step 6: Detect whether the normal access, as shown, the entire installation is complete!!!!

Installing Tomcat under the Centos-linux system

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.