
新しい CentOS サーバーに httpd と php をインストールしました。
yum install httpd php -y
何百もの Web サーバーのインストールを実行しましたが、何らかの奇妙な理由で問題が発生しているようです。
サーバーのIPにアクセスすると
This webpage is not available
ERR_CONNECTION_TIMED_OUT
ただし、wget localhost を実行すると、問題なく Web ディレクトリ内の index.html ファイルがダウンロードされます。
これは、Web サーバーが実際に動作しているが、外部接続からの要求を受け入れていないことを意味します。
調べてみたところ、この問題に関する記事はありませんでした。
私の人生でこれほど奇妙な問題に遭遇したことはありません。
編集:
ファイアウォールを更新してみました
[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