-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fucongcong
committed
Nov 8, 2017
1 parent
b657f6a
commit 9a57600
Showing
13 changed files
with
78 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### 控制台 | ||
|
||
#### 命令进入根目录执行 app/console | ||
|
||
``` | ||
- - - - - - - - - - - - - - - - - \ \ \ \ - - - - - - | ||
/ - - - - - / \ / / - - - / / - - - - - \ \ \ \ \ \ \- - - - - -\ | ||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||
\ \ - - - \ \ \ \ \ \ \ \ \ \ \ \- - - - - / / | ||
\ \ / - - -/ \ \ \ \ \ \ \ \ \ \ \ \ - - - - - | ||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||
\ \ - - - \ \ \ \ \ \ - - - - - / \ \ - - - - \ \ \ | ||
\ - -- - \ / \ \ \ - - - - -/ \ - - - - - / \ \ | ||
使用帮助: | ||
Usage: app/console [options] [args...] | ||
generate:service name 生成一个自定义service | ||
generate:controller name|groupname:name 生成一个自定义controller(默认存放在src/Web,如果想要指定分组 groupname:name) | ||
sql:generate 生成一个sql执行模板(存放于app/sql) | ||
sql:migrate 执行sql更新 | ||
sql:rollback version 执行sql回滚到指定版本 | ||
log.clear 清除日志 | ||
``` | ||
|
||
#### 自定义控制台 {#自定义控制台} | ||
|
||
##### 配置文件config/app.php {#配置文件configappphp} | ||
|
||
``` | ||
//扩展console命令行控制台 | ||
'console_commands' => [ | ||
'log:clear' => [ | ||
'command' => 'src\Web\Command\LogClearCommand', //执行的类 | ||
'help' => '清除日志', //提示 | ||
], | ||
], | ||
``` | ||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
### 环境依赖 | ||
|
||
* #### [**hiredis**](https://github.com/redis/hiredis)**(redis异步库)** | ||
* #### **redis** | ||
* #### **mysql** | ||
* #### **php >5.6 或者 php > 7.0** | ||
* #### swoole >=1.9.23\(建议升级到最新版本\) \(在编译swoole时加入--enable-async-redis,开启异步redis客户端, --enable-openssl开启openssl支持,--with-openssl-dir指定你的openssl目录\) | ||
* [**hiredis**](https://github.com/redis/hiredis)**(redis异步库)** | ||
* **redis** | ||
* **mysql** | ||
* **php >5.6 或者 php > 7.0** | ||
* swoole >=1.9.23\(建议升级到最新版本\) \(在编译swoole时加入--enable-async-redis,开启异步redis客户端, --enable-openssl开启openssl支持,--with-openssl-dir指定你的openssl目录\) | ||
|
||
> ##### 注:openssl是用于http异步客户端抓取https网址时依赖的模块,可以选择性开启 | ||
> 注:openssl是用于http异步客户端抓取https网址时依赖的模块,可以选择性开启 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
### 启动项目\(请先完成环境依赖安装\) | ||
|
||
1. #### 克隆项目 | ||
2. #### 执行 => composer install | ||
3. #### 新建一个runtime目录,用于存放日志等cache文件 | ||
4. #### 配置config中的database配置文件 | ||
5. #### 设置config/service.php中的registry\_address.目前只支持redis、mysql作为注册中心 | ||
6. #### 启动http server => php server.php | ||
7. #### 访问 [http://localhost:9777/](http://localhost:9777/) 开始异步协程之旅 | ||
1. 克隆项目 | ||
2. 执行 => composer install | ||
3. 新建一个runtime目录,用于存放日志等cache文件 | ||
4. 配置config中的database配置文件 | ||
5. 设置config/service.php中的registry\_address.目前只支持redis、mysql作为注册中心 | ||
6. 启动http server => php server.php | ||
7. 访问 [http://localhost:9777/](http://localhost:9777/) 开始异步协程之旅 | ||
|
||
|
||
|
Empty file.