摘要:
在linux系统中, 一切都是文件, socket也只是一个特殊的文件. 所有的文件都可以使用read, write进行操作. Socket server创建标准流程 create bind listen 不过php提供一个非常方便的函数, stream_socket_server, 一个函数搞定上 阅读全文
摘要:
1、Nginx 502 Bad Gateway php-cgi进程数不够用、php执行时间长(mysql慢)、或者是php-cgi进程死掉,都会出现502错误 一般来说Nginx 502 Bad Gateway和php-fpm.conf的设置有关,而Nginx 504 Gateway Time-ou 阅读全文