版权声明:本文为博主原创文章,未经博主允许不得转载。 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/下面执行这个命令,就会报上面的错误!
很简单的错误,以此记录,不在采坑!