因为Centos 7自带防火墙,本来就默认屏蔽所有端口。
我个人不建议关掉防火墙,如果你不用来做某些服务(你懂的),打开防火墙后添加这些规则比较合适 sudo firewall-cmd --add-service http,https,ssh (SSH 前提是你没有改ssh端口)
LE默认是连接端口80来验证网站所有权
因为Centos 7自带防火墙,本来就默认屏蔽所有端口。
我个人不建议关掉防火墙,如果你不用来做某些服务(你懂的),打开防火墙后添加这些规则比较合适 sudo firewall-cmd --add-service http,https,ssh (SSH 前提是你没有改ssh端口)
LE默认是连接端口80来验证网站所有权
Can it be solved only by closing the firewall?
okay,I’ll try it.
thanks
If you want to use the HTTP-01 challenge and not the DNS-01 challenge, then you need to be able to receive incoming port 80 connections on your server.
Please...……………………...
未找到服务

对对对…抱歉…
sudo firewall-cmd --add-service http
sudo firewall-cmd --add-service https
sudo firewall-cmd --add-service ssh
建议要么换个SSH端口,要么弄个Fail2ban…
还有…必须要用caddy嘛…
caddy简单点…Apache, nginx太难…
thanks,The problem has been solved. firewallprotection is not closed