摘要: 此警告的问题是受限于Linux的最大文件数限制 nginx.conf有设置文件数:10000 1、 修改/etc/security/limits.conf文件 添加下面信息 * soft noproc 65535 * hard noproc 65535 * soft nofile 65535 * h 阅读全文
posted @ 2022-04-29 10:34 leihongnu 阅读(928) 评论(0) 推荐(0)
摘要: 对所有用户限制,在下面的location 添加 只允许 192.168.1.102访问,拒绝所有ip访问 allow 192.168.1.102;deny all; 针对admin(特定)用户,在下面的location添加 保存后重启 nginx 生效 注意:百度到的 location /admin 阅读全文
posted @ 2022-04-29 10:09 leihongnu 阅读(172) 评论(0) 推荐(0)