linux启动lnginx报错了worker_processes: command not found

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_22701869/article/details/82779102

linux启动nginx报错了

-bash: worker_processes: command not found 
-bash: events: command not found 
-bash: worker_connections: command not found 
-bash: nginx.conf: line 15: syntax error near unexpected token }' 
-bash: nginx.conf: line 15:
}’

仔细检查才发现我起错目录了,正确的启动是在sbin/下执行"./nginx",而我莫名其妙地跑到conf/下面执行这个命令,就会报上面的错误!

很简单的错误,以此记录,不在采坑!

猜你喜欢

转载自blog.csdn.net/qq_22701869/article/details/82779102