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

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

WBOY
Release: 2016-06-23 13:47:12
Original
1191 people have browsed it

$fp=fsockopen(mx2qq.com,25,$errno,$errstr,300);]
Copy after login
这段语句在windows地下运行没问题,在CentOS地下返回错误信息Error number:13,Error message:Permission denied,求解决方法 


回复讨论(解决方案)

SElinux先关掉再试试

权限不够
http://blog.csdn.net/pennyliang/article/details/7342042

权限不够
http://blog.csdn.net/pennyliang/article/details/7342042


谢谢回答,已经按照里面的方法解决,确实是权限不够
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template