Skip to content

Commit 3b22fb7

Browse files
authored
Update README.md
1 parent b478318 commit 3b22fb7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#### 2. support hyperf ~2.1.0 & ~2.2.0
44
#### 3. support CentOS7+, Ubuntu 18.0.4+, macOS
55
#### 4. support swoole-cli
6+
#### 5. support hyperf phar
67
### install
78
```bash
89
composer require lobtao/hyperf-helper:dev-main
@@ -11,51 +12,61 @@ composer require lobtao/hyperf-helper:dev-main
1112
```php
1213
php ./bin/hyperf.php server:start -d
1314
swoole-cli ./bin/hyperf.php server:start -d
15+
php ./hyperf-skeleton.phar server:start -d
1416
```
1517
### stop server,default by master pid
1618
```php
1719
php ./bin/hyperf.php server:stop
1820
swoole-cli ./bin/hyperf.php server:stop
21+
php ./hyperf-skeleton.phar server:stop
1922
```
2023
### stop server by app name
2124
```php
2225
php ./bin/hyperf.php server:stop -a
2326
swoole-cli ./bin/hyperf.php server:stop -a
27+
php ./hyperf-skeleton.phar server:stop -a
2428
```
2529
### stop server by port
2630
```php
2731
php ./bin/hyperf.php server:stop -p
2832
swoole-cli ./bin/hyperf.php server:stop -p
33+
php ./hyperf-skeleton.phar server:stop -p
2934
```
3035
### safe reload worker&task process, default
3136
```php
3237
php ./bin/hyperf.php server:reload
3338
swoole-cli ./bin/hyperf.php server:reload
39+
php ./hyperf-skeleton.phar server:reload
3440
```
3541
### safe reload task process only
3642
```php
3743
php ./bin/hyperf.php server:reload -t
3844
swoole-cli ./bin/hyperf.php server:reload -t
45+
php ./hyperf-skeleton.phar server:reload -t
3946
```
4047
### view server status, default by master pid
4148
```php
4249
php ./bin/hyperf.php server:status
4350
swoole-cli ./bin/hyperf.php server:status
51+
php ./hyperf-skeleton.phar server:status
4452
```
4553
### view server status by app name
4654
```php
4755
php ./bin/hyperf.php server:status -a
4856
swoole-cli ./bin/hyperf.php server:status -a
57+
php ./hyperf-skeleton.phar server:status -a
4958
```
5059
### view server status by port
5160
```php
5261
php ./bin/hyperf.php server:status -p
5362
swoole-cli ./bin/hyperf.php server:status -p
63+
php ./hyperf-skeleton.phar server:status -p
5464
```
5565
### restart server
5666
```php
5767
php ./bin/hyperf.php server:restart
5868
swoole-cli ./bin/hyperf.php server:restart
69+
php ./hyperf-skeleton.phar server:restart
5970
```
6071
### quick shell
6172
```shell
@@ -68,4 +79,4 @@ swoole-cli ./bin/hyperf.php server:restart
6879
./server.sh reload
6980
./server.sh stop
7081
./server.sh status
71-
```
82+
```

0 commit comments

Comments
 (0)