当我运行:certbot renew --dry-run
,它显示,
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/springwood.me.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Simulating renewal of an existing certificate for springwood.me
Failed to renew certificate springwood.me with error: Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/springwood.me/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
如果我手动打开现有的服务器,那么它就可以运行了。
但是,我希望它能够自动运行,而不需要手动打开/关闭现有的服务器。目前,certbot已经在我的系统上安装了一个计时器。
# systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Mon 2022-10-31 14:34:03 JST 5h 10min left Sun 2022-10-30 14:34:03 JST 18h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Mon 2022-10-31 14:41:00 JST 5h 17min left Mon 2022-10-31 00:56:13 JST 8h ago snap.certbot.renew.timer snap.certbot.renew.service
2 timers listed.
我应该做什么来修改计时器脚本?
发布于 2022-11-04 11:24:39
解决方案:在现有域上运行certbot certonly --webroot
时,必须添加webroot目录,例如certbot certonly --webroot -w /var/www/html/
https://stackoverflow.com/questions/74257689
复制相似问题