問(wèn)題:騰訊云服務(wù)器業(yè)務(wù)部署后80端口無(wú)法訪問(wèn)

確認(rèn)問(wèn)題

[root@VM-0-7-centos ~]# curl http://127.0.0.1
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" v=2.0&key=777e724bd088e83df0a863a405087e9b"></script></html>
[root@VM-0-7-centos ~]#

有結(jié)果

curl http://<你的ip地址> 

如下:
[root@VM-0-7-centos ~]# systemctl stop iptables
Failed to stop iptables.service: Unit iptables.service not loaded.

問(wèn)題確認(rèn): 1.要么是安全組設(shè)置問(wèn)題 2.要么是iptabels問(wèn)題

解決方案

1.打開(kāi)80


image.png

2.云服務(wù)器不需要iptables,關(guān)閉

[root@VM-0-7-centos ~]# iptables -F

原因

iptables 和 安全組都是阻止訪問(wèn)的地方,都要檢查

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容