Linux command description

Source: Internet
Author: User

Boot Linux into the Tomcat installation directory/apache-tomcat-6.0.26/bin run #./startup.sh start
Run command when you stop Tomcat: #./shutdown.sh start
Remotely view Tomcat's console into the Tomcat/logs/folder type directive: Tail-f catalina.out can view the console.

1.tomcat Logs folder, display the log tail-f catalina.out

Log garbled, after query modify tomcat/bin/catalina.sh file
Restart server problem resolution after adding "-DFILE.ENCODING=GBK-DSUN.JNU.ENCODING=GBK" to the java_opts variable
2. View the server network Open Interface condition command netstat-tln
3. Firewall command:
/etc/init.d/iptables Status Comment: View firewall status
/etc/init.d/iptables start Comment: Turn on the firewall
/etc/init.d/iptables Stop Comment: Turn off the firewall

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.