- 設置為websocket服務.將swoole.php下的`websocket['enable']`設置為`true`
- 在項目根目錄下執行以下命令
```
php think swoole start
```
輸出:

通常還會用到以下兩個命令:
```
php think swoole restart
```
```
php think swoole stop
```
對執行流程感興趣的可以在`vendor\topthink\think-swoole\src\command\Server.php`文件中查看源代碼.