Skip to content

Commit 6827f90

Browse files
cexllyunwuxin
authored andcommitted
Update README.md
1 parent a9f8112 commit 6827f90

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
### 公共配置
1212

13-
```
13+
```bash
1414
[
1515
'default'=>'sync' //驱动类型,可选择 sync(默认):同步执行,database:数据库驱动,redis:Redis驱动//或其他自定义的完整的类名
1616
]
@@ -29,7 +29,7 @@
2929

3030
### 下面写两个例子
3131

32-
```
32+
```php
3333
namespace app\job;
3434

3535
use think\queue\Job;
@@ -62,7 +62,7 @@ class Job1{
6262

6363
```
6464

65-
```
65+
```php
6666

6767
namespace app\lib\job;
6868

@@ -105,10 +105,12 @@ class Job2{
105105

106106
## 监听任务并执行
107107

108-
> php think queue:listen
108+
```bash
109+
&> php think queue:listen
109110

110-
> php think queue:work
111+
&> php think queue:work
112+
```
111113

112-
两种,具体的可选参数可以输入命令加 --help 查看
114+
两种,具体的可选参数可以输入命令加 `--help` 查看
113115

114-
>可配合supervisor使用,保证进程常驻
116+
> 可配合supervisor使用,保证进程常驻

0 commit comments

Comments
 (0)