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/下面执行这个命令,就会报上面的错误!

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

Logo

更多推荐