Centos firewall on and off, Tomcat on, off and view status

1. Turn on the firewall: service iptables start

 Turn off the firewall: service iptables stop

 Query the firewall status : service iptables status

2. Tomcat startup and shutdown query status

 Startup: ./path/startup.sh

 shutdown  : ./path/shutdown.sh

 Query status: ps -ef | grep tomcat

  Query Tomcat logs: 1. First switch to: cd tomcat/logs

          2、tail -f catalina.out

          3. In this way, you can view the running log in real time when running

          Ctrl+c is to exit the tail command.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325674715&siteId=291194637