执行以下命令报错,请帮忙看看,谢谢! # ./nginx nginx: [warn] the"user" directive makes sense only if the master process runs withsuper-user privileges, ignored in/home/EASAdm/data/app/nginx-trn0web2/conf/nginx.conf:2
nginx: [emerg]"listen" directive is not allowed here in /home/EASAdm/data/app/nginx-trn0web2/conf/nginx.conf:2
下面是配置文件内容:
user nobody; listen <1024+>;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
|