VPS侦探论坛

 找回密码
 注册
查看: 3092|回复: 3

Let's encrypte ssl添加失败

[复制链接]
发表于 2017-11-9 10:32:30 | 显示全部楼层 |阅读模式

某一网站ssl即将过期,发现更新失败,于是手动更新,失败,删除证书后,lnmp ssl add添加证书也失败,运行语句如下:It will be processed automatically.
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
/bin/certbot [found]
index-url = https://pypi.doubanio.com/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.***.club
http-01 challenge for ***.club
Using the webroot path /home/wwwroot/www.***.club for all unmatched domains.
Waiting for verification...
Cleaning up challenges
live directory exists for www.***.club
Let's Encrypt SSL Certificate create failed!



附件是失败的log,已经替换了网站信息。

单独运行 /bin/certbot   有以下提示
certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find executable apachectl in PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.


请问军哥,这个该怎么解决呢。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-11-9 18:57:46 | 显示全部楼层


安装配置文件路径看不上lnmp的nginx,你系统上有非lnmp安装的nginx,可能是通过apt-get或yum方式安装的
因为不上lnmp的nginx所有肯定是无法控制进行生成ssl证书的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-11-10 15:12:04 | 显示全部楼层

回复 2# 的帖子


我通过update.sh重新升级了nginx,这样也不行吗

2 我看了下yum update的升级日志,没有Nginx的字眼,这么久也能确定没通过其他方式安装Nginx。现在怎么做才能改回默认路径呢。

[ 本帖最后由 dcdcc 于 2017-11-10 15:29 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-11-10 17:58:38 | 显示全部楼层

回复 3# 的帖子




升级只是升级lnmp的nginx不会影响到你这个通过其他方式安装的nginx
你得卸载掉这个多出来的nginx才行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-4 13:06 , Processed in 0.026900 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表