服务 apache2 运行 但没有响应 CentOS

Service apache2 is running but not responding CentOS

我试图 运行 CentOS Apache2 / PHP / MySQL LAN 上的服务器(使用 10.x.x.x IP)。

OS : CentOS 6.7 版(最终版)

我检查了服务是否 运行ning,它们仍在工作。

[root@srv-annuaire-01 ~]# /etc/init.d/httpd status
httpd (pid  2542) en cours d'exécution... *(running)*
[root@srv-annuaire-01 ~]# /etc/init.d/mysqld status
mysqld (pid  1795) en cours d'exécution... *(running)*

编辑:这是阻止我们的服务 iptables。

在 apache2 配置文件中添加

listen port_no 

/etc/init.d/iptables stop

并重启你的服务器