linux 命令更新

1.进入目录:
cd /data/tomcat_asg_admin/asgLogs
2.查询 日志,过滤条件
cat asg_info.log* | grep coop-client获取数据失败
3.查询 过去日志,过滤条件
cat asg_info.log_2020-02-27.log |grep coop-client获取数据失败
4.统计日志中,失败次数
cat asg_info.log_2020-02-27.log |grep coop-client获取数据失败 | wc -l
5.查进程
ps  aux
ps  -ef
6.过滤 tomact进程
ps  aux  | grep  tomcat

posted @ 2020-02-28 19:50  Golover  阅读(500)  评论(0编辑  收藏  举报