多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**1、首先我们应该安装好 shopxo 商城系统** 这一步我就不作说明了,shopxo 完整的文档教你如何做。 **2、开始安装萝卜客服插件** 打开后台-->应用中心-->应用管理-->上传应用 ![](https://img.kancloud.cn/75/fa/75fa195fd4f28624574ca201d0b2933b_1740x1260.png) 选择 萝卜在线客服.zip,点击确认上传 **3、点击客服插件安装** ![](https://img.kancloud.cn/e6/14/e61464d2f7e13810a4e810558f5a05de_892x588.png) ![](https://img.kancloud.cn/5a/79/5a79475360f4c765da51cc0d6a4c5cdc_2014x980.png) ![](https://img.kancloud.cn/12/c6/12c62378ea11f0924fa9cfdb7f45fdd2_966x542.png) 确定启用插件 此后访问商品详情页,便会显示咨询的按钮 ![](https://img.kancloud.cn/e3/dd/e3dde12fb3f6f26b1f27ad3dd77a0fa3_2518x1430.png) 成功后,会多出如下的5张表 ![](https://img.kancloud.cn/87/03/8703fe916cf6626a01618632760b5a31_726x602.png) **4、启动socket服务端** >[danger] 在配置之前,请您确认,您的系统安装了 `pcntl` 扩展 ```php php --ri pcntl ``` ![](https://img.kancloud.cn/71/20/71202a51c3c945c9f36994f8f2c4d9c1_1026x154.png) 如果如上面的显示则表示您的php环境开启了pcntl,如果未开启,请百度如何开启pcntl >[danger] 确保您的防火墙开启了 9102 端口,如果您的云服务器有安全组之类的服务,请确保 安全组 也放行了 9102 端口 >[danger] socket运行目录 shopxo项目所在目录/application/plugins/luobo/service windows下点击 目录下的 start_for_win.bat linux下 通过shell 进入 目录下 运行 ```php php start.php start ``` > 此是debug模式。其他命令: ```php php start.php start // debug执行 php start.php start -d // 守护执行 php start.php restart -d // 重启守护执行 php start.php stop // 停止执行 ``` ![](https://img.kancloud.cn/fc/84/fc8416db5ae3bc5a560b79af9220de4e_1664x370.png) 至此安装部分到此结束 >[danger] 以下为常见的启动报错 目前新版本的php的安全函数,禁用了 pcntl_ 开头很多函数,然而 workerman 又是借助这些扩展才得以使用。如遇以下问题 ![](https://img.kancloud.cn/42/4a/424ae568c16959b4969d30b883460a88_1730x762.png) 只需要到 php.ini 中找到disable_functions 配置项把 pcntl_开头的函数全部移除