下载https://www.workerman.net/dow...?或者使用composercomposerrequireworkerman/gateway-worker?使用手册:http://doc2.workerman.net/使用demo会下载后移入项目https://www.workerman.net/dow...修改配置tcp为websocket启动服务cdvendor/GatewayWorker/phpstart.phpstart-d打开扩展pcntl_forkposixpcntl简单应用??GatewayWorkerstart用stoplinux命令启动和停止注意,Workerman的启动和停止命令都是在命令行完成的。要启动Workerman,首先需要有一个启动入口文件,里面定义了服务监听的端口和协议。这里以workerman-chat为例,它的启动入口是start.php。Startwithdebug(调试)startphpstart.phpstartstartphpwithdaemon(守护进程)start.phpstart-dstopphpstart.phpstoprestartphpstart.phprestartsmoothrestartphpstart.phpreload查看状态phpstart。phpstatus绑定client_id,当前用户ID可以绑定一个用户ID,多个client_ids。更多精彩文章,请关注王铭昌博客
