下面是主配置文件nginx.conf
user www www;
error_log /data/web/logs/nginx_error.log crit;
pid nginx.pid;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_max_size 512;
server_names_hash_bucket_size 512;
variables_hash_max_size 512;
variables_hash_bucket_size 512;
#client_header_buffer_size 32k;
client_header_buffer_size 4096; # getconf PAGESIZE »
user www www;
error_log /data/web/logs/nginx_error.log crit;
pid nginx.pid;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_max_size 512;
server_names_hash_bucket_size 512;
variables_hash_max_size 512;
variables_hash_bucket_size 512;
#client_header_buffer_size 32k;
client_header_buffer_size 4096; # getconf PAGESIZE »
本文详细介绍了Nginx服务器的主配置文件nginx.conf的具体内容,包括用户设置、错误日志路径、进程ID文件路径等核心参数,并展示了事件模块配置及HTTP模块中的一些高级配置选项。
778

被折叠的 条评论
为什么被折叠?



