摘要:
一,用firewalld添加ipset 创建新的ipset [root@blog ~]# firewall-cmd --permanent --new-ipset=nginxcc --type=hash:ip 重新加载到内存 [root@blog ~]# firewall-cmd --reload 阅读全文
posted @ 2024-08-28 15:35
刘宏缔的架构森林
阅读(56)
评论(0)
推荐(0)
摘要:
一,解析日志得到访问量最高的100个ip地址: awk '{print $1}' www.access_log | sort | uniq -c | sort -n -k 1 -r | head -n 100 效果如图: 二,解析日志得到访问量最高的10个url 命令 [root@blog 27]# 阅读全文
posted @ 2024-08-28 11:37
刘宏缔的架构森林
阅读(57)
评论(0)
推荐(0)
摘要:
一,关闭nginx的版本显示: 1,关闭前 2,关闭nginx版本显示: 编辑nginx.conf [root@blog conf]# vi nginx.conf 增加一行: server_tokens off; 重新服务: [root@blog conf]# systemctl reload ng 阅读全文
posted @ 2024-08-28 11:27
刘宏缔的架构森林
阅读(257)
评论(0)
推荐(0)
浙公网安备 33010602011771号