摘要:[root@smindu nginx]# cat nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_c
阅读全文
随笔分类 - Nginx
摘要:如果nginx的server里没配置access.log,nginx会默认将server的访问日志记录到access.log, 关闭方法: 在nginx.conf配置文件中, 在全局配置中添加 error_log off; 在http块中添加:access_log off; 然后在server中单独
阅读全文