我启用了 80 和 443。
sudo certbot certonly --standalone --agree-tos --no-eff-email --staple-ocsp --preferred-challenges http -m **@**.com -d mycomp.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for mycomp.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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.
让我们调试节目
ANotWorking
ERROR
mycomp.com has an A (IPv4) record (*.***.***.***) but a request to this address over port 80 did not succeed. Your web server must have at least one working IPv4 or IPv6 address.
我不明白端口 80 出了什么问题。如何解决这个问题?
正如错误所说,端口 80“已被此系统上的另一个进程(例如 Web 服务器)使用”。您已经告诉 certbot 独立运行,而不是与现有的网络服务器合作,如果您提出要求,它将使用它。
更改
certbot --standalone
或停止您正在运行的网络服务器。