java 开发linux常用命令


检索日志

cat [log] | grep [search] | tail -n 10

例子:

cat catalina.out | grep "error" | tail -n 10

检索catalina.out 内的error日志 显示十行

查看tomcat 


ps -ef|grep tomcat


启动远程tomat调试模式

../bin/catalina.sh  jpda start 

猜你喜欢

转载自blog.csdn.net/onnwll/article/details/51531448