Linux 常用命令

查看磁盘使用情况
df -h

查看目录大小
du -sh *

查看某个进程
ps aux | grep php-fpm

监控某个日志文件
tailf error.log
tail -f error.log

监控服务器

top

统计 access.log 文件访问次数最多的 ip 地址,并取前 10 条记录
cat access.log | awk ‘{print $1}’ | sort | uniq -c | sort -k1nr | head -10

非特殊说明,本博所有文章均为博主原创。

备注:相关侵权、举报、投诉及建议等,请联系站长

添加新评论

昵称
邮箱
网站