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.