Certbot 和 nginx 版本:
certbot 使用certbot.eff.org安装指南安装。
- 证书机器人版本:0.22.2
- Nginx 版本:1.10.3
获取 ssl 证书工作正常:
certbot --nginx
但是,在更新 cerbot 认证时
certbot renew --dry-run
nginx无法启动导致:
nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
我试过改变后钩和前钩/etc/letsencrypt/renewal/*com.conf/
- 评论
installer=nginx
- 将身份验证器更改为 nginx 和独立
添加 post 和 pre 钩子/etc/letsencrypt/renewal-hooks/pre/
并/etc/lestencrypt/renewal-hooks/post/
停止和启动 nginx 服务。
似乎 nginx 没有正确启动或没有正确停止。续订完成后,nginx 失败并显示 (code=exited, status=1/FAILURE)
Nginx 错误日志显示: