Linux Build Tomcat

Source: Internet
Author: User

Linux is really good to run, but for development, it is estimated that few people use it.

First, installation

1. Download tar.gz file

2, decompression, you can use the MV command to modify the file name

3, establish a soft connection: Ln-s/usr/local/tomcat8.0//usr/local/tomcat

4. CD tomcat/bin/

5, Vim catalina.sh, add catalina_home=/usr/local/tomcat8.0/

6,chmod +x *.sh //The order is???

7. In the Bin directory: Execute./startup.sh

Second, local WIN8 access virtual machine tomcat

issue : Virtual machine installation tomcat,ping Virtual machine network can ping, but in Windows browser input 192.168.199.8:8080 error, unable to access

Hiroichi: http://blog.csdn.net/yuebinghaoyuan/article/details/8976796

Bo II: http://liuna718-163-com.iteye.com/blog/2281943

1, open Telnet, the current is still not very understanding of Telnet,

When Telnet 192.168.199.8:8080 under DOS, display: on port 23: Connection Failed

2. Modify the Linux firewall: vi/etc/sysconfig/iptables

3. Add ports to be opened:-a input-p tcp-m state--state new-m TCP--dport 8080-j ACCEPT ( Note must be placed in front of the Reject )

4. Restart the firewall: service iptables restart

Windows Browser Input 192.168.199.8:8080 finally solves the problem

Linux Build 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.