All Projects → aizuyan → daemon

aizuyan / daemon

Licence: other
PHP daemon 进程管理,类似nginx的master worker进程模型

Programming Languages

PHP
23972 projects - #3 most used programming language

不支持windows哦

https://www.cnblogs.com/iforever/p/9039579.html

使用

php test/test.php start
php test/test.php status

输出:

Daemon [Test] 信息:
-------------------------------- master进程状态 --------------------------------
pid       占用内存       处理次数       开始时间                 运行时间
35216     2M             --             2018-05-15 02:06:18      0 天 0 时 3 分
6 slaver
-------------------------------- slaver进程状态 --------------------------------
任务task-mcq:
35217     2M             24             2018-05-15 02:06:18      0 天 0 时 3 分
35218     2M             24             2018-05-15 02:06:18      0 天 0 时 3 分
--------------------------------------------------------------------------------
任务other:
35219     2M             46             2018-05-15 02:06:18      0 天 0 时 3 分
35220     2M             46             2018-05-15 02:06:18      0 天 0 时 3 分
35221     2M             46             2018-05-15 02:06:18      0 天 0 时 3 分
35222     2M             46             2018-05-15 02:06:18      0 天 0 时 3 分
--------------------------------------------------------------------------------

待完善

  1. 日志模块儿
  2. 进程各种状态记录详细日志
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].