今天测试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
1.查看主机信息 # more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 xyn-redhat localhost.localdomain localhost 2.查看进程 # ps -aux|grep java //显示所有进程名中包含java字符串的进