nginx重启失败[emerg] unexpected “}” in /usr/local/nginx/conf/nginx.conf:96

重启LNMP之后,发现nginx无法启动,导致网页无法访问

[root@******** ~]# service nginx restart
Stoping nginx... nginx is not running.
Starting nginx... nginx: [emerg] unexpected "}" in /usr/local/nginx/conf/nginx.conf:96
 failed

发现是nginx.conf:96错误

实际是95行有问题

网上找到了解决办法:第95行结尾加上分号

重启,成功

如果有来世,我愿意做一只贝壳