網路伺服器無法存取

網路伺服器無法存取

我已經在我的新 centos 伺服器上安裝了 httpd 和 php。

yum install httpd php -y

我已經安裝了數百個網頁伺服器,但由於某種奇怪的原因,我似乎遇到了麻煩。

當我訪問伺服器 IP 時,我得到

This webpage is not available

ERR_CONNECTION_TIMED_OUT

儘管當我執行 wget localhost 時,它會毫無問題地下載 Web 目錄中的 index.html 檔案。

這意味著網頁伺服器確實正在工作,只是不接受來自外部連線的請求。

我研究過,沒有關於這個問題的文章。

我一生中從未遇到過如此奇怪的問題。

編輯:

我嘗試過更新防火牆

[root@zh-px3 ~]# iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
[root@zh-px3 ~]# /etc/init.d/iptables save
-bash: /etc/init.d/iptables: No such file or directory

相關內容