在线聊天 宝塔启动Websocket服务

工作中有个在线客服系统,用到workerman  websocket

在宝塔终端执行命令配置,

公司开发服

1.需切换到root用户 才有权限操作  su root

2.输入密码,文本/图形界面都是无回显

3.进入菜单  cd /www/wwwroot/gd.xxx.com/ymwl_pusher

4.启动服务,  开发服已配置过等保,关闭终端服务自动停止

需要加上nohup,后台不挂断执行命令,退出终端不影响运行

nohup php start.php restart

5.nginx反向代理

location /app
{
  proxy_pass http://127.0.0.1:9090;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header X-Real-IP $remote_addr;
}

 

 

posted @ 2021-07-17 11:47  东方素  阅读(1966)  评论(0编辑  收藏  举报