certbot如何绑定端口?无法绑定 TCP 端口 80,因为该端口已被另一个进程使用

Mar*_*oGM 2 ubuntu port-forwarding certbot

我同时启用了 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.
Run Code Online (Sandbox Code Playgroud)

让我们调试显示

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.
Run Code Online (Sandbox Code Playgroud)

我不明白端口 80 有什么问题。如何解决这个问题?

roa*_*ima 7

正如错误所示,端口 80“已被该系统上的另一个进程(例如 Web 服务器)使用”。您已经告诉 certbot 独立运行,而不是与现有的网络服务器合作,如果您要求的话,它会使用现有的网络服务器。

更改certbot --standalone或停止您正在运行的网络服务器。