【问题标题】:Issues starting up nginx with conf files使用 conf 文件启动 nginx 的问题
【发布时间】:2020-02-29 17:55:42
【问题描述】:

上周我已经很好地设置了我的 nginx 服务器,直到我注意到我收到了针对它的 DOSS 攻击。然后我注意到此时我的 Nginx 服务器无法启动。除了阅读无济于事的文档之外,我已经尝试了其他所有方法,但不确定如何解决该问题。

Nginx 文档

main nginx.conf 似乎是空的,由于某种原因我无法保存。

root@ubuntu-vpc-do-moon:~# /etc/init.d/nginx 状态 ● nginx.service - 高性能 Web 服务器和反向代理服务器 已加载:已加载(/lib/systemd/system/nginx.service;已启用;供应商预设:已启用) 活动:自 2019 年 11 月 4 日星期一 10:54:44 UTC 以来失败(结果:退出代码); 1 分钟 43 秒前 文档:人:nginx(8) 进程:2550 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process 开启; (code=exited, status=1/FAILURE)

11 月 4 日 10:54:44 ubuntu-vpc-do-moon systemd[1]:启动高性能 Web 服务器和反向代理服务器... 11 月 4 日 10:54:44 ubuntu-vpc-do-moon nginx[2550]: nginx: [emerg] open() "/etc/nginx/sites-enabled/nginx.conf" failed (2: No such file or directory ) 在 /etc/nginx/nginx.conf:62 11 月 4 日 10:54:44 ubuntu-vpc-do-moon nginx[2550]:nginx:配置文件 /etc/nginx/nginx.conf 测试失败 11 月 4 日 10:54:44 ubuntu-vpc-do-moon systemd[1]: nginx.service: 控制进程退出,code=exited status=1 11 月 4 日 10:54:44 ubuntu-vpc-do-moon systemd[1]:nginx.service:失败,结果为“退出代码”。 11 月 4 日 10:54:44 ubuntu-vpc-do-moon systemd[1]: 无法启动高性能 Web 服务器和反向代理服务器。

【问题讨论】:

  • 已解决,删除 nginx 并重新安装并解决。

标签: nginx digital-ocean


【解决方案1】:

从 ubuntu 中删除了 Nginx,并在服务器上进行了全新安装。这次设法将服务器块排除在外,一切都很好。

【讨论】:

    猜你喜欢
    • 2013-03-23
    • 2013-08-10
    • 2016-07-15
    • 2021-10-02
    • 1970-01-01
    • 2015-10-20
    • 1970-01-01
    • 1970-01-01
    • 2015-06-02
    相关资源
    最近更新 更多