centos 防火墙的开启关闭,Tomcat开启、关闭及查看状态

1.开启防火墙:service iptables start

 关闭防火墙:service iptables stop

 查询防火墙状态:service iptables status

2.Tomcat的启动 关闭 查询状态

 启动 :./路径/startup.sh

 关闭 :./路径/shutdown.sh

 查询状态:ps -ef | grep tomcat

  查询Tomcat日志:1、先切换到:cd tomcat/logs

          2、tail -f catalina.out

          3、这样运行时就可以实时查看运行日志了

          Ctrl+c 是退出tail命令。


猜你喜欢

转载自blog.csdn.net/benpaodexin_l/article/details/80183276