Linux 启动
如启动失败请 查看坑点概述
Linux运行IM即时通讯
1. 远程连接Linux
可以通过远程连接软件、VNC远程连接、Workbench或宝塔面板 > 软件商店 > 宝塔SSH终端进入SSH 终端
cd命令 进入cd www/wwwroot/你的网站/此目录

2. 启动即时通讯
首次启动请使用 php think wanlshop:chat start !!!! 才可以看到是否有其他被禁用函数导致不正常启动,正常启动成功后 php think wanlshop:chat start --daemon

宝塔 php 禁用函数 删掉这个开头的
删除后 关掉当前命令窗口 在运行
进入网站根目录后复制以下命令
调试启动(终端关闭后会关闭进程)
php think wanlshop:chat start
守护启动(终端关闭后会在后台持续运行)
php think wanlshop:chat start --daemon
停止
php think wanlshop:chat stop
重启
php think wanlshop:chat restart
平滑重启
php think wanlshop:chat reload
查看状态
php think wanlshop:chat status

示例启动
配置超时时间:/addons/wanlshop/library/WanlChat/GatewayClient.php中的这一句
public static $connectTimeout = 3;
修改时间为6。class GatewayClient
{
/**
* gateway 实例
*
* @var object
*/
protected static $businessWorker = null;
/**
* 注册中心地址
*
* @var string|array
*/
public static $registerAddress = '127.0.0.1:1238';
/**
* 秘钥
* @var string
*/
public static $secretKey = '';
/**
* 链接超时时间
* @var int
*/
public static $connectTimeout = 3; /**
* 与Gateway是否是长链接
* @var bool
*/
public static $persistentConnection = false;