CentOS 5.5 Apache 无法访问 问题解决

   CentOS 5.5 下安装Apache, 本机可以telnet 到80端口,但网络上其他主机无法访问,猜测是防火墙的问题,结果果然是。

   解决方法:
   Shell 下

     setup->Firewall Configuration->Customize
        Trusted Devices:    [ ] eth1 [*] eth0     // 选你需要的网卡,一般eth0
        Allow incoming:     [*] WWW (HTTP)   //选择 HTTP允许
     这样再试就可以了,httpd不用重启。

     顺便测试下代码高亮

   printf("Hello World");

0 评论: