Skip to content

Commit a2c536f

Browse files
committed
update README.md
1 parent dae862c commit a2c536f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
11
### 安装驱动
22
#### 一. 使用workerman驱动
33
```shell
4-
composer require microphp/workerman
4+
composer require microphp/workerman
55
```
66

77
#### 二. 使用roadrunner驱动
88
```shell
9-
composer require microphp/roadrunner
9+
composer require microphp/roadrunner
1010
```
1111

1212
1. 安装roadrunner二进制文件
1313
```shell
14-
php bin/console roadrunner:get
14+
php bin/console roadrunner:get
1515
```
1616
2. 修改.env中驱动
1717
```dotenv
18-
SERVER_DRIVER=roadrunner
18+
SERVER_DRIVER=roadrunner
1919
```
2020
#### 三. 使用swoole驱动
2121
```shell
22-
composer require microphp/swoole
22+
composer require microphp/swoole
2323
```
2424

2525
1. 修改.env中驱动
2626
```dotenv
27-
SERVER_DRIVER=swoole
27+
SERVER_DRIVER=swoole
28+
```
29+
2. 发布配置
30+
```shell
31+
php bin/console config:publish swoole
32+
```
2833

2934
### 运行
3035
```shell
31-
php bin/console start
36+
php bin/console start
3237
```
3338

3439

3540
### 格式化代码
3641
```shell
37-
composer cs ./app
42+
composer cs ./app
3843
```

0 commit comments

Comments
 (0)