y23335793 发表于 2017-12-23 06:26:57

更改 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]
查看完整版本: 更改 Nginx 服务的默认用户