Home >Backend Development >PHP Tutorial >socket-PHP SOCKET如何释放所占用的端口

socket-PHP SOCKET如何释放所占用的端口

WBOY
WBOYOriginal
2016-06-02 11:29:271135browse

socketphp

请问一下Linux上我用socket(在windows正常)但是每次都提醒占用端口 需要释放 所以我试了下在绑定前加上socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) 但是这样不但不行 而且客

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