Ubuntu 重启 Nginx 失败,* Restarting nginx nginx ...fail!
Ubuntu 重启 nginx 失败,* Restarting nginx nginx ...fail!
执行 nginx 重启服务时,提示失败如下:
$ sudo service nginx restart
* Restarting nginx nginx
...fail!1
原因是你配置 nginx 的配置文件出了错误
查找错误,处理方法:
$ sudo nginx -t
nginx: [emerg] "location" directive is not allowed
here in /etc/nginx/nginx.conf:11
nginx: configuration file /etc/nginx/nginx.conf
test failed1
根据错误信息,修改对应生的配置文件即可。
Nginx 的详细介绍:请点这里
Nginx 的下载地址:请点这里
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29