摘要: 想监控root打开文件的数量,于是在脚本里写了lsof -u root|wc -l 但是通过crontab执行后,显示不识别lsof命令。 解决办法:在脚本里的lsof前面加上/usr/sbin。即/usr/sbin/lsof -u root|wc -l 结束。 阅读全文
posted @ 2022-09-14 15:41 巴州夜雨 阅读(74) 评论(0) 推荐(0) 编辑
摘要: $sudo iostatLinux 3.10.0-1160.el7.x86_64 (ai_server3) 09/14/2022 _x86_64_ (40 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 0.02 0.00 0.03 0. 阅读全文
posted @ 2022-09-14 15:39 巴州夜雨 阅读(27) 评论(0) 推荐(0) 编辑