Certbot和nginx版本:
使用certbot.eff.org安装指南安装certbot.
> Certbot版本:0.22.2
> Nginx版本:1.10.3
获得ssl证书工作正常:
certbot –nginx
但是,在更新cerbot认证
certbot更新–Dry-run
nginx无法启动导致:
nginx:[error] open()“/ run / nginx.pid”失败(2:没有这样的文件或目录)
我尝试在/etc/letsencrypt/renewal/*com.conf/中更改后挂钩和预挂钩
>评论安装程序= nginx
>将身份验证器更改为nginx和独立
在/ etc / letsencrypt / renewal-hooks / pre /和/ etc / lestencrypt / renewal-hooks / post /中添加post和pre hooks以停止和启动nginx服务.
似乎nginx无法正常启动或未正常停止.
续订完成后nginx失败(代码=退出,状态= 1 / FAILURE)
Nginx错误日志显示:
最佳答案
我在Ubuntu 16.04上遇到了同样的问题
我刚刚删除了/etc/letsecrypt/renewal/*.conf中的post和pre hooks,并将authenticator更改为nginx – 我有两个条目独立.
现在工作正常.