今天收到邮件提示证书快要过期了,很是疑惑,因为设置了自动续签的crontab任务的,登录上去手动执行certbot renew发现报错
Unable to run the command: nginx -c /etc/nginx/nginx.conf -t
手动执行该命令又是没问题的
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
翻了下官网文档,执行certbot –nginx查看列表同样出现无法执行Nginx命令报错,手动重新
yum install python2-certbot-nginx
重新安装nginx的certbot插件后问题解决,成功续签证书。