Skip to content

phper666/hyperf-server-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperf-server-command

注意

该扩展包完全使用了FanchangWang写的代码,非常感谢FanchangWang,FanchangWang的github地址
我是在hyperf1.2的pr查看到的这份代码,应该已经被包含hyperf1.2的命令内了,具体请看该pr地址

拉取包

composer require phper666/hyperf-server-command:~1.0.0

hyperf的启动、重启、停止、监听等命令如下:

//php bin/hyperf.php tmg:start -d //启动服务并进入后台模式
//php bin/hyperf.php tmg:start -c //启动服务并清除 runtime/container 目录
//php bin/hyperf.php tmg:start -w //启动服务并监控 app、config目录以及 .env 变化自动重启
//php bin/hyperf.php tmg:start -w -p /bin/php //启动 watch 服务,参数 p 指定 php 安装目录
//php bin/hyperf.php tmg:start -w -t 10  //启动 watch 服务,参数 t 指定 watch 时间间隔,单位秒
//php bin/hyperf.php tmg:stop //停止服务
//php bin/hyperf.php tmg:restart //重启服务
//php bin/hyperf.php tmg:restart -c //重启服务并清除 runtime/container 目录

tmg的前缀是我这边默认加上去的,自行修改

About

hyperf的启动、重启、停止、监听等命令

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages