ps -ef | grep tomcat-web 【查询tomact进程】
kill -9 pid 【结束tomcat进程】
/opt/tomcat-web/bin/startup.sh 【启动tomcat】
tail -800f /opt/tomcat-web/logs/catalina.out 【跟踪启动日志 tail命令】
curl "http://localhost:8071/lend/loanindex" 【测试Tomcat接口响应】
grep 'StartAndFailLoanJob task start' ../logs/catalina.out|tail -1 【查找文件中字符串最近出现的地方】

du -ach --max-depth=1 /opt   【查看日志大小,用来查找测试环境磁盘被占满的情况】

ls -alh   【也会显示当前路径下文件的占用磁盘情况】

netstat –nat | grep 8070 【查看接口状态。已建立的连接 ESTABLISHED;等待关闭的连接 CLOSE_WAIT;TIME_WAIT】

相关文章:

  • 2021-10-22
  • 2022-01-02
  • 2021-04-01
  • 2021-05-04
  • 2021-05-26
  • 2021-12-27
猜你喜欢
  • 2021-12-13
  • 2022-02-13
  • 2022-12-23
  • 2021-12-21
  • 2021-04-05
  • 2022-01-04
  • 2022-01-16
相关资源
相似解决方案