错误原因:

              SELinux 不让 httpd 访问外网,由此可知SELinux的利害了

解决办法:

1.    getenforce查看selinux的状态为:enforcing

 禅道安装通过IP不能访问mysql解决办法

        2.    键入:getsebool -a | grep httpd查看httpd的布尔状态;可以看到httpd_can_network_connect --> off;如图:

 禅道安装通过IP不能访问mysql解决办法

        

3.    键入:setsebool httpd_can_network_connect 1  开启;

4.    重启mysql:  service mysqld  restart即可;


  Centos6.5下 apache搭建onethink站点发生系统错误:SQLSTATE[HY000] [2003] Cant connect to MySQL server on 127.0.0.1 (13)

    


相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-09-25
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2022-02-24
  • 2021-09-16
  • 2021-08-13
相关资源
相似解决方案