首页 > 其他 > 详细

nginx配置

时间:2020-02-21 11:45:55      阅读:51      评论:0      收藏:0      [点我收藏+]
worker_processes  auto;
配置error log路径
error_log  /data/nginx_logs/error.log warn;
配置access log路径
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /data/nginx_logs/access.log  main;

worker_connections  10240; 需要修改ulimit值,默认1024
vim /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
重启生效

nginx配置

原文:https://www.cnblogs.com/kylingx/p/12340653.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!