更新失敗
systemctl stop <YOUR_HTTPD>
でポート80で動いているデーモンを止めても、例のこれが出ます
$ certbot renew
<中略>
... Problem binding to port 80: Could not bind to IPv4 or IPv6.. Skipping.
lsof -i:80
で調べると、どうもAlibaba Cloudのセキュリティ関連のデーモン(AliYunDun)が80番ポートで動いているらしく、更新時にはこれが邪魔をしてます。なので、このデーモンを kill
してから certbot renew
ください。 更新終了後はOSのリブートまたは停止させたデーモンを再起動して完了です!
以下公式サイトの記述です。
After the Security Center agent is installed, the server automatically downloads the aegis_client and aegis_update files and starts the AliYunDun and AliYunDunUpdate processes. The server downloads and starts the other files and processes listed in the following table only after you enable related features. Therefore, you need to pay attention to the files and processes only after the related features are enabled.
For example, if you enable the client protection feature, Security Center downloads the AliSecGuard file and starts the corresponding process on your server. If you do not enable the feature, Security Center does not download the file or start the corresponding process.