一般启动方式
php think worker:server
支持的操作包括:
操作 | 描述 |
---|---|
start | 启动服务(默认操作) |
reload | 平滑重启 |
stop | 停止服务 |
restart | 重启服务 |
status | 查看服务运行信息 |
connections | 查看连接信息 |
如停止服务
php think worker stop
守护进程启动(Linux支持)
php think worker:server -d
php think worker:server
支持的操作包括:
操作 | 描述 |
---|---|
start | 启动服务(默认操作) |
reload | 平滑重启 |
stop | 停止服务 |
restart | 重启服务 |
status | 查看服务运行信息 |
connections | 查看连接信息 |
如停止服务
php think worker stop
php think worker:server -d