【问题标题】:How to increase worker_process nginx directadmin如何增加worker_process nginx directadmin
【发布时间】:2016-11-27 03:18:30
【问题描述】:

我想增加安装在 DirectAdmin 上的 Nginx 中的 worker_process, 我打开这个文件:

nano /etc/nginx/nginx.conf

但它没有Worker_process,下面是所有代码:

#user  nginx;

# The number of worker processes is changed automatically by CustomBuild, according to the number of CPU cores, if it's set to "1"

pid /var/run/nginx.pid;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

events {
#    worker_connections 1024;
    include /etc/nginx/nginx-events.conf;
}


http {
    include       /etc/nginx/mime.types;

    # For user configurations not maintained by DirectAdmin. Empty by default.
    include /etc/nginx/nginx-includes.conf;

    # Supplemental configuration
    include /etc/nginx/nginx-modsecurity-enable.conf;
    include /etc/nginx/nginx-defaults.conf;
    include /etc/nginx/nginx-gzip.conf;
    include /etc/nginx/directadmin-ips.conf;
    include /etc/nginx/directadmin-settings.conf;
    include /etc/nginx/nginx-vhosts.conf;
    include /etc/nginx/directadmin-vhosts.conf;
}

【问题讨论】:

    标签: linux nginx centos webserver directadmin


    【解决方案1】:

    您可以启用以下行并根据需要增加它。

    #    worker_connections 1024;
    

    【讨论】:

    • 当我启用它时,nginx 无法重启并显示失败
    猜你喜欢
    • 2011-11-11
    • 2013-01-23
    • 2019-07-11
    • 1970-01-01
    • 2019-05-04
    • 2021-05-02
    • 1970-01-01
    • 2014-11-07
    • 1970-01-01
    相关资源
    最近更新 更多