linux上操作web项目常用实用命令总结

来源:互联网 发布:淘宝卖家如何寄快递 编辑:程序博客网 时间:2024/06/07 11:35
  1. 向web项目日志文件中清空并写入===:echo '===' > /apache-tomcat-6.0.41/logs/catalina.out
  2. 实时观察系统日志:tail -f /apache-tomcat-6.0.41/logs/catalina.out
  3. 停止服务器:进入命令所在bin目录下 ===>执行 sh ./shutdowm.sh
  4. 查看tomcat是否已经关闭:ps -ef|grep java
  5. 直接杀死tomcat:kill -9  7001 (其中7001为pid进程号)
  6. 启动tomcat:sh ./startup.sh
  7. 强制退出命令:ctrl+c 
0 0
原创粉丝点击