服务apache2正在运行但没有响应CentOS

时间:2016-01-20 09:31:56

标签: php mysql centos apache2 freetds

我尝试在局域网上运行CentOS Apache2 / PHP / MySQL服务器(使用10.x.x.x IP)。

操作系统:CentOS版本6.7(最终版)

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

[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。

1 个答案:

答案 0 :(得分:0)

在apache2配置文件中添加

listen port_no 

/etc/init.d/iptables stop

并重新启动服务器