检索日志
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
检索日志
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