Skip to content

add command stop、restart,extend command start#1053

Closed
FanchangWang wants to merge 4 commits intohyperf:masterfrom
FanchangWang:master
Closed

add command stop、restart,extend command start#1053
FanchangWang wants to merge 4 commits intohyperf:masterfrom
FanchangWang:master

Conversation

@FanchangWang
Copy link
Contributor

add command stop、restart
extend command start

extend command start
@FanchangWang
Copy link
Contributor Author

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

@no-serve-people
Copy link
Contributor

支持

@sonhineboy
Copy link

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

如我我的server里有 http1 http2 ,我怎么做你等单独重启 http1
问题如:#1054

@huangzhhui huangzhhui added this to the v1.2.0 milestone Nov 30, 2019
@huangzhhui huangzhhui added the BC Break Change label Dec 4, 2019
@limingxinleo
Copy link
Member

PR 不要混到一起。。。

@FanchangWang
Copy link
Contributor Author

PR 不要混到一起。。。

不好意思,把这个提交给忘记了。。。
已经重置 commit 了

@kasnet
Copy link

kasnet commented Apr 23, 2020

php bin/hyperf.php reload //平滑重启服务
对于非容器环境, 这个需求有计划开发吗?@huangzhhui @FanchangWang

@FanchangWang
Copy link
Contributor Author

官方已经有类似功能组件,关闭 pr

@MattCraftsCode
Copy link

官方已经有类似功能组件,关闭 pr

你倒是说一下是什么组件,贴个链接?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Break Change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants