1.开启调试
调试 workerman
- 首先请确保workerman是以调试模式启动,调试启动命令:php think kefu start,若已经以守护进程模式启动,请参考启动与停止,停止服务后,再重新以调试模式启动
- 开启调试后,workerman的所有报错,均会直接输出到终端,排查workerman的错误办法是前台做了一项操作后,检查终端上的输出
启动与停止
linux下启动与停止
- 以debug(调试)方式启动(关闭小黑窗,服务自动退出)
php think kefu start - 以daemon(守护进程)方式启动
php think kefu start d - 停止
php think kefu stop - 重启
php think kefu restart - 平滑重启
php think kefu reload - 查看状态
php think kefu status
Windows下启动与停止
win下直接运行根目录/addons/kefu/commands/kefu_start_for_win.bat文件即可。