首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nginx systemd[1]:nginx.service: Failed与结果'exit-code‘

nginx systemd[1]:nginx.service: Failed与结果'exit-code‘
EN

Server Fault用户
提问于 2022-11-13 10:06:56
回答 1查看 3.7K关注 0票数 1

所以我给自己安装了一个乳齿象.

当我试图重新启动nginx时,我会得到错误。

代码语言:javascript
复制
root@instance-20221113-1925:/home/ubuntu# sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

下面是日志(上面写着Nov 13 09:45:11 instance-20221113-1925 nginx[34044]: nginx: configuration file /etc/nginx/nginx.conf test failed):

https://pastebin.com/bRxTA3m1

conf文件为(未经编辑):

https://pastebin.com/dcK2RyCH

经验丰富的眼睛能发现错误吗?谢谢!

EN

回答 1

Server Fault用户

发布于 2022-11-13 10:50:52

在这里找到了解决办法:

certbot指令在ssl中失败_证书错误

说明的另一个补充:在IPtables安装程序结束时运行:

代码语言:javascript
复制
sudo iptables --flush
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1115549

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档