php socket connect permission denied

Linux在php socket连接时报错:permission denied

解决办法:

# setsebool httpd_can_network_connect=1

 

参考来源:

http://www.cppblog.com/colorful/archive/2013/07/29/202222.html

http://hi.baidu.com/zwfec/item/64ef5ed9bf1cb3feca0c397c

http://imysql.cn/2012/12/13/php-with-httpd-can-not-connect-mysql-under-selinux.html

http://blog.chinaunix.net/uid-26727991-id-3235275.html

你可能感兴趣的:(Permission)