我正在使用 nginx 1.4.1。复制unicorn 的示例后nginx.conf,我发现必须将设置移动到不同的指令。我仍然无法将以下设置放入nginx.conf文件中:、、worker_processes和user阻止。当我按原样放置它们时,日志显示. 我应该修复什么?pideventsdirective is not allowed here
worker_processes 1;
user deployer sudo; # for systems with a "nogroup"
pid /run/nginx.pid;
events {
  worker_connections 1024; # increase if you have lots of clients
  accept_mutex off; # "on" if nginx worker_processes > 1
}
upstream abc {
  ...
}
server {
  ...
}
更新 1
我知道这篇文章,但奇怪的是我所做的一切都不起作用。我在 nginx 中找不到任何文档。