原因是:SELinux的原因
1.打开http网络访问
setsebool -P httpd_can_network_connect 1
2.关掉selinux
vi /etc/selinux/config
SELINUX=disabled
3.实时关闭selinux
/usr/sbin/setenforce 0
题外话
查看http 是否network
/usr/sbin/getsebool -a |grep httpd_can_network_connect
- 本文固定链接: http://www.phpac.com/746.html
- 转载请注明: 严嵩 于 老严的博客 发表
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!