1.查看端口是否被占用 [guosong@alice48 main]$ netstat -nlp|grep 6184 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:6184 0.0.0.0:* LISTEN 32429/python26 man netstat --…
今天测试swoole写webserver实现多端口监听.记录下爬过的坑:关于tcp协议监听触发不到receive!!!!! 首先上服务端代码 class Http { /** * 服务实例 * @var Server */ protected $server; public function run(){ $setting = Config::get('http'); /*开启监听*/ $this->server = new Server($setting['host'],$setting['p…