更改 Nginx 服务的默认用户
# vim /usr/local/nginx/conf/nginx.conf worker_processes1;user nginx nginx; # 指定Nginx服务的用户和用户组
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
sendfile on;
keepalive_timeout65;
server_tokens off;
server {
listen 80;
server_namewww.abc.com;
location / {
root html/www;
indexindex.html index.htm;
}
}
}
页:
[1]