摘要: #!/bin/bash pwd=/app/nginx/logs/access.log for num1 in `cat $pwd | awk '{print $9}' | grep -Ei "^4|^5" | wc -l` do echo 异常状态码总数:$num1 for num2 in `cat 阅读全文
posted @ 2021-03-04 22:16 tigergaonotes 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 修改操作系统内核参数 编辑/etc/sysctl.conf,增加下列内容 向内核配置文件中写入: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p kernel.shmmn 阅读全文
posted @ 2021-03-04 22:13 tigergaonotes 阅读(214) 评论(0) 推荐(0) 编辑