首页 > 代码库 > linux 系统常用语句

linux 系统常用语句

nginx 查询500错    #tail -2000000 /usr/local/nginx/logs/access.log|grep ‘HTTP/1.1" 500‘

nginx 查询响应时间 #tail -100000 /usr/local/nginx/logs/access.log|awk ‘{print $NF}‘ |tr -d \"|awk ‘{avg += ($1 - avg) / NR;} END { print avg; }‘

awk求平均值         #awk ‘{avg += ($1 - avg) / NR;} END { print avg; }‘

linux 系统常用语句