首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在已经使用端口80的服务器上使用certbot-auto自动更新?

如何在已经使用端口80的服务器上使用certbot-auto自动更新?
EN

Stack Overflow用户
提问于 2022-10-31 00:26:12
回答 1查看 100关注 0票数 0

当我运行:certbot renew --dry-run,它显示,

代码语言:javascript
运行
复制
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已经在我的系统上安装了一个计时器。

代码语言:javascript
运行
复制
# 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.

我应该做什么来修改计时器脚本?

EN

回答 1

Stack Overflow用户

发布于 2022-11-04 11:24:39

解决方案:在现有域上运行certbot certonly --webroot时,必须添加webroot目录,例如certbot certonly --webroot -w /var/www/html/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74257689

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档