certbot 生成证书错误:Could not bind TCP port 80 because it is already in use by another process on this system (such as a

2023-09-18 12:06:15
208

certbot certonly --webroot时,必须添加webroot目录,如下,这样可以通过你的网页目录和域名确定所有权认证。

生成的证书有效期为90天。

certbot certonly --webroot -w /var/www/html/