首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在根密码更改后,nginx拒绝连接。

在根密码更改后,nginx拒绝连接。
EN

Server Fault用户
提问于 2017-08-19 14:27:35
回答 1查看 1.9K关注 0票数 1

这太奇怪了。我正在使用数字海洋与服务器飞行员。我更改了服务器的根密码,站点就关闭了。

代码语言:javascript
复制
root@niche-hunter:/# sudo service nginx-sp restart
Job for nginx-sp.service failed because the control process exited with error code. See "systemctl status nginx-sp.service" and "journalctl -xe" for details.
root@niche-hunter:/# journalctl -xe
-- Subject: Unit nginx-sp.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx-sp.service has begun starting up.
Aug 19 14:22:27 niche-hunter sshd[21087]: Failed password for root from 113.195.145.21 port 36880 ssh2
Aug 19 14:22:27 niche-hunter nginx[21115]: nginx: [emerg] BIO_new_file("/etc/nginx-sp/certs/app.amzformula.com/yourdomain_com.crt") failed (SSL: error:02001002:system l
Aug 19 14:22:27 niche-hunter nginx[21115]: nginx: configuration file /etc/nginx-sp/nginx.conf test failed
Aug 19 14:22:27 niche-hunter systemd[1]: nginx-sp.service: Control process exited, code=exited status=1
Aug 19 14:22:27 niche-hunter systemd[1]: Failed to start nginx-sp.
-- Subject: Unit nginx-sp.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx-sp.service has failed.
--
-- The result is failed.
Aug 19 14:22:27 niche-hunter systemd[1]: nginx-sp.service: Unit entered failed state.
Aug 19 14:22:27 niche-hunter systemd[1]: nginx-sp.service: Failed with result 'exit-code'.
Aug 19 14:22:28 niche-hunter systemd[1]: nginx-sp.service: Service hold-off time over, scheduling restart.
Aug 19 14:22:28 niche-hunter systemd[1]: Stopped nginx-sp.
-- Subject: Unit nginx-sp.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx-sp.service has finished shutting down.
Aug 19 14:22:28 niche-hunter systemd[1]: nginx-sp.service: Start request repeated too quickly.
Aug 19 14:22:28 niche-hunter systemd[1]: Failed to start nginx-sp.
-- Subject: Unit nginx-sp.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx-sp.service has failed.
--
-- The result is failed.
Aug 19 14:22:29 niche-hunter sshd[21087]: Failed password for root from 113.195.145.21 port 36880 ssh2
Aug 19 14:22:29 niche-hunter sshd[21087]: Received disconnect from 113.195.145.21 port 36880:11:  [preauth]
Aug 19 14:22:29 niche-hunter sshd[21087]: Disconnected from 113.195.145.21 port 36880 [preauth]
Aug 19 14:22:29 niche-hunter sshd[21087]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=113.195.145.21  user=root
Aug 19 14:22:29 niche-hunter sshd[21085]: Failed password for root from 221.194.47.233 port 33551 ssh2
Aug 19 14:22:30 niche-hunter sshd[21085]: Received disconnect from 221.194.47.233 port 33551:11:  [preauth]
Aug 19 14:22:30 niche-hunter sshd[21085]: Disconnected from 221.194.47.233 port 33551 [preauth]
Aug 19 14:22:30 niche-hunter sshd[21085]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=221.194.47.233  user=root
EN

回答 1

Server Fault用户

发布于 2017-08-19 15:09:31

我看不到根密码更改与nginx运行状态之间存在关联的方式。根据您的日志,您的配置文件中似乎有一个错误。

尝试运行nginx -t并检查错误是什么。

根据日志,您似乎在/etc/nginx-sp/certs/app.amzformula.com/your‌​domain_com.crt丢失了一个证书。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/869502

复制
相关文章

相似问题

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