修改nginx用户和组
修改nginx用户和组
1.修改主配置文件
vim /usr/local/nginx/conf/nginx.conf
user nginx nginx; #行1
worker_processes 2; #行2
vim /usr/local/nginx/conf/nginx.conf
user nginx nginx; #行1
worker_processes 2; #行2
avents {
添加:use epoll;
}
添加:use epoll;
}
2.重新生效
killall -HUP nginx
killall -HUP nginx