解决由于selinux导致php不能远程连接外网mysql
setsebool -P httpd_can_network_connect 1
在开启selinux的情况情,使用此命令即可以允许php连接外部网络
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/190.html
setsebool -P httpd_can_network_connect 1
在开启selinux的情况情,使用此命令即可以允许php连接外部网络
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/190.html