环境win server 2019,宝塔7.9,nginx,PHP7.4和7.3都试了,mysql5.7,版本5.2.2
配置了nginx反向代理,
location /notice {
proxy_pass http://127.0.0.1:50001/;
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;
}
location /msg {
proxy_pass http://127.0.0.1:50002/;
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;
}
宝塔和服务器端口50001-50013都开了。
powershell运行了
php think queue:listen --queue
php think timer start --d
直接运行了crmeb目录下的workerman.bat,客服后台能发消息,但是过几分钟就不行了,客服发不出,客户那显示客服连接中,然后是连接失败
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}