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