Not connected : Can't connect to MySQL server on '192.168.74.240' (13)
原因: SELinux 不让 httpd 访问外网
解决方法:
#getsebool -a | grep httpd
发现 httpd_can_network_connect --> off
然后
#setsebool httpd_can_network_connect 1
Not connected : Can't connect to MySQL server on '192.168.74.240' (13)
原因: SELinux 不让 httpd 访问外网
解决方法:
#getsebool -a | grep httpd
发现 httpd_can_network_connect --> off
然后
#setsebool httpd_can_network_connect 1