多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
一、登录阿里云或腾讯云服务器控制台,开启8282端口 ![](https://img.kancloud.cn/68/9c/689c3227a8b66ca04c68e7e9e7c20370_600x663.png) 二、登录宝塔面板【应用商店】,查看使用的是Apache还是Nginx ![](https://img.kancloud.cn/27/0e/270e65bf0154b338124f9ecdee8b9e9a_1408x681.png) 三、在宝塔面板打开【站点】页面,找到【壹佰智慧门店V2】对应的站点设置,添加【伪静态】内容如下 ![](https://img.kancloud.cn/a1/19/a119655b7327aaec9513004ddaef4232_700x649.png) nginx服务器添加如下内容: location /wss { proxy\_pass[http://localhost:8282/;](http://localhost:8282/;) proxy\_http\_version 1.1; proxy\_set\_header Upgrade $http\_upgrade; proxy\_set\_header Connection "Upgrade"; proxy\_set\_header X-real-ip $remote\_addr; proxy\_set\_header X-Forwarded-For $remote\_addr; } apache服务器添加如下内容: RewriteEngine On RewriteCond %{HTTP:UPGRADE} ^WebSocket$ \[NC\] RewriteCond %{HTTP:CONNECTION} ^Upgrade$ \[NC\] RewriteRule .\* ws://localhost:8282/ \[P\] 四、在宝塔【应用商店】找到启动状态的PHP,依次点击【设置】 ![](https://img.kancloud.cn/e5/c1/e5c129ee8be6733cd636cc6ab64925c2_1459x462.png) 五、在禁用函数中删除如下函数,然后重启PHP(所有版本启动状态的PHP都需要删除相关函数,然后重启PHP) exec pcntl\_alarm pcntl\_fork pcntl\_signal pcntl\_signal\_dispatch pcntl\_wait ![](https://img.kancloud.cn/4a/dc/4adc9fcb7616f921e24789eef35d378a_644x600.png) ![](https://img.kancloud.cn/fe/b7/feb793c80ac72dc25308d20706207232_646x606.png) 六、在【壹佰多商户】应用后台打开【商家助手】-【通信服务设置】页面,点击【开启服务】 ![](https://img.kancloud.cn/c2/24/c2240314b9ff9dc5f3a900fd45699c20_761x661.png) 七、如果开启服务失败,可重启服务器试一下。