💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## **在线客服配置** 1、workman启动前线解除几个禁用函数, pcntl_signal pcntl_fork pcntl_alarm pcntl_signal_dispatch pcntl_wait ![](https://img.kancloud.cn/bd/cf/bdcfd39bc2fcd5b72494872e16849aaf_647x604.png) 2、workman-gatewayworker启动,启动命令:php think worker:gateway -d 后台运行。 ![](https://img.kancloud.cn/ea/e2/eae2b7eeec1ae01247670430cf901ad0_853x129.png) 停止命令:php think worker:gateway stop 程序监听2348端口。 3、nginx配置,前台的socket请求代理到workman: location /socket { proxy_pass http://127.0.0.1:2348; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_connect_timeout 15s; proxy_send_timeout 15s; proxy_read_timeout 15s; } ![](https://img.kancloud.cn/76/e4/76e43662f481c9c9cf7b080bd566745f_854x663.png) 4、后台配置,是否开启在线客服,默认是关闭: 如果是小程序,请在小程序后台添加socket安全域名 ![](https://img.kancloud.cn/90/f7/90f705b2b9dfa4e316433e3da4db6933_1338x673.png)