Installing Tomcat on Linux

Source: Internet
Author: User

Installing TomcatSoftware: apache-tomcat-7.0.70.tar.gz Compressed package/usr/yanghai decompression to/USR/LOCAL/TOMCAT7 boot tomcat:/usr/local/tomcat7/ Apache-tomcat-7.0.70/binsh startup.sh Boot log:
1 [email protected] bin]# sh startup.sh2Using catalina_base:/usr/local/tomcat7/apache-tomcat-7.0. -3Using Catalina_home:/usr/local/tomcat7/apache-tomcat-7.0. -4Using Catalina_tmpdir:/usr/local/tomcat7/apache-tomcat-7.0. -/Temp5Using jre_home:/usr/local/java/jdk1.8. 0_1016Using CLASSPATH:/usr/local/tomcat7/apache-tomcat-7.0. -/bin/bootstrap.jar:/usr/local/tomcat7/apache-tomcat-7.0. -/bin/tomcat-Juli.jar7Tomcat started.

Look in the log file: Cd/usr/local/tomcat7/apache-tomcat-7.0.70/logs/tail-f catalina.out
1The A, . 8:Ten: -PM org.apache.catalina.startup.HostConfig deploydirectory2Info:deploying Web Application directory/usr/local/tomcat7/apache-tomcat-7.0. -/webapps/Manager3The A, . 8:Ten: -PM org.apache.catalina.startup.HostConfig deploydirectory4Info:deployment of Web Application directory/usr/local/tomcat7/apache-tomcat-7.0. -/webapps/manager has finishedinch 135Ms5The A, . 8:Ten: -PM org.apache.coyote.AbstractProtocol Start6Info:starting Protocolhandler ["http-bio-8080"]7The A, . 8:Ten: -PM org.apache.coyote.AbstractProtocol Start8Info:starting Protocolhandler ["ajp-bio-8009"]9The A, . 8:Ten: -PM Org.apache.catalina.startup.Catalina StartTenInfo:server Startupinch 1910Ms
See boot success, browser access: ip+ port http://120.27.42.226:8080/cat, so long OK. Note here will encounter some problems, the installation of the relatively smooth, and some of the installation process, you will encounter the success of Tomcat, but the browser can not access the situation, it is necessary to consider whether the firewall is open 8080 port; View firewall Status:/etc/init.d/iptables status# Open 8011 Port/sbin/iptables-i input-p tcp--dport 8011-j ACCEPT #保存配置/etc/rc.d/init.d/iptables save# Restart service/etc/rc.d /init.d/iptables Restart also note that the installation of the environment, this example of the installation environment is centOS6.5, if installed on the centOS7.5, the command to view the firewall is also different, you can see the resources:
    • FIREWALLD replaces iptableshttp://blog.csdn.net/smstong/article/details/39317277 with the great change of CentOS 7
    • Linux Firewall with command line FIREWALLD basic Operation http://my.oschina.net/fhd/blog/413945 "Tomcat installation 8080 is not accessible, the following post solves this problem, find time to tidy up." 】
    • This is a document about FIREWALLD, very detailed. Https://fedoraproject.org/wiki/FirewallD/zh-cn
Reference: http://www.cnblogs.com/zhoulf/archive/2013/02/04/2891633.html

The above content I have a period of time in 16 to install note Records, temporarily placed here, if there are errors welcome you to correct, thank you!

Installing Tomcat on Linux

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.