Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 2430b4a

Browse files
authored
Update README.md
1 parent 64b9c5f commit 2430b4a

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

README.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -77,34 +77,21 @@ For example, if you want to set the 'max_request':
7777
]
7878
```
7979

80-
## Command
80+
## Commands
8181

8282
> The swoole_http_server can only run in cli environment, and this package provides convenient artisan commands to manage it.
8383
> By default, you can visit your site at http://127.0.0.1:1215
8484
85-
Start
85+
> `php artisan swoole:http {start|stop|restart|reload|infos|publish}`
8686
87-
```
88-
$ php artisan swoole:http start
89-
```
90-
91-
Stop
92-
93-
```
94-
$ php artisan swoole:http stop
95-
```
96-
97-
Restart
98-
99-
```
100-
$ php artisan swoole:http restart
101-
```
102-
103-
Reload
104-
105-
```
106-
$ php artisan swoole:http reload
107-
```
87+
| Command | Description |
88+
| --------- | --------- |
89+
| `start` | Start LaravelS, list the processes by *ps -ef|grep laravels* |
90+
| `stop` | Stop LaravelS |
91+
| `restart` | Restart LaravelS |
92+
| `reload` | Reload all worker process(Contain your business & Laravel/Lumen codes), exclude master/manger process |
93+
| `infos` | Show PHP and Swoole basic miscs infos(including PHP version, Swoole version, Laravel version, server status and PID) |
94+
| `publish` | Publish configuration file `swoole_http.php` to `config` folder of your project |
10895

10996
Now, you can run the following command to start the **swoole_http_server**.
11097

0 commit comments

Comments
 (0)