Home >Backend Development >PHP Tutorial >CentOS下在php中使用socket连接异常Permission denied

CentOS下在php中使用socket连接异常Permission denied

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:08:331016browse

CentOS下在php中使用socket连接错误Permission denied

<br />$fp=fsockopen(mx2qq.com,25,$errno,$errstr,300);]<br />
这段语句在windows地下运行没问题,在CentOS地下返回错误信息Error number:13,Error message:Permission denied,求解决方法 
------解决思路----------------------
SElinux先关掉再试试
------解决思路----------------------
权限不够
http://blog.csdn.net/pennyliang/article/details/7342042

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn