nginx配置报错worker_processes" directive is not allowed here
来源:1-1 课程介绍
![](http://img1.sycdn.imooc.com/user/5b8cf2640001291502000200-100-100.jpg)
MAX_Q
2021-08-22
跟着老师做,
nginx: [emerg] “worker_processes” directive is not allowed here in /etc/nginx/conf.d/vserver1.conf:3
报错了,网上找了说什么第二次家在conf文件 worker_processes 不能在 http 模块内,知道问题,但是这个怎么解决呢原来include在1的位置后来按照网上说的改变位置到2的位置,但还是报错,老师这个怎么解决
写回答
1回答
-
Jeson
2021-08-23
把worker_processes 的配置放入道http的外一层配置哈?
012021-08-24
相似问题