项目作者: lhy90a

项目描述 :
swoole process manage api
高级语言: PHP
项目地址: git://github.com/lhy90a/swoole_process.git
创建时间: 2017-06-12T09:03:54Z
项目社区:https://github.com/lhy90a/swoole_process

开源协议:

下载


swoole_process

swoole process manage api
php7
install extension swoole 1.9

可以通过接口对守护进程进程管理操作,通过进程间通信上报心跳。使用weiboad/kafka-php 支持kafka消费

ln -s swoole_process.service /etc/systemd/system/swoole_process.service

主进程启动
systemctl start swoole_process.service
systemctl stop swoole_process.service
systemctl reload swoole_process.service

开启进程服务

url: http://127.0.0.1:9595/?action=start&service=Test1Service

关闭进程服务

url: http://127.0.0.1:9595/?action=stop&service=Test1Service

强制关闭进程服务

url: http://127.0.0.1:9595/?action=force&service=Test1Service

结束所有进程服务

url: http://127.0.0.1:9595/?action=stopall&service=Test1Service

主进程状态

url: http://127.0.0.1:9595/?action=status&service=Test1Service

服务列表及状态

url: http://127.0.0.1:9595/?action=list&service=Test1Service

服务列表

url: http://127.0.0.1:9595/?action=list_service&service=Test1Service

临时增加服务

url: http://127.0.0.1:9595/?action=add_service&service=Test1Service