下文并没有根本上解决端口绑定的问题,只是换了一种获取/更新证书的方式,绕过了端口绑定

环境

  • LNMP
  • certbot
  • Ubuntu 16.04

问题描述

certbot 更新证书,执行

certbot renew --dry-run

后,报错

Encountered exception during recovery: certbot.errors.MisconfigurationError: nginx restart failed:

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

nginx: [emerg] still could not bind()

Attempting to renew cert (xxx.com) from /etc/letsencrypt/renewal/xxx.com.conf produced an unexpected error: nginx restart failed:

解决 certbot 无法更新证书问题

参考

参考太多了,不整理了

原因

Continue reading “解决 certbot 无法更新证书问题”