Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ daemon Public

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

Notifications You must be signed in to change notification settings

aizuyan/daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

不支持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. 进程各种状态记录详细日志

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /