Skip to content

Commit

Permalink
update md
Browse files Browse the repository at this point in the history
  • Loading branch information
fucongcong committed Nov 8, 2017
1 parent b657f6a commit 9a57600
Show file tree
Hide file tree
Showing 13 changed files with 78 additions and 42 deletions.
42 changes: 18 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,25 @@
* [注册中心](doc/fu-wu-zhong-xin/zhu-ce-zhong-xin.md)
* [服务调用](doc/fu-wu-zhong-xin/yi-bu-http-server-zhong-shi-yong-fu-wu.md)
* [服务调用监控](doc/fu-wu-zhong-xin/fu-wu-diao-yong-jian-kong.md)
* 基础服务\(待更新\)

* Config
* StaticCache

* Route

* Controller
* View

* Request

* Response
* Event
* Listener
* Subscriber
* EventDispatcher

* 基础服务
* [Config配置类](doc/ji-chu-fu-wu/config.md)
* [StaticCache静态缓存类](doc/ji-chu-fu-wu/staticcache.md)
* [Route路由类](doc/ji-chu-fu-wu/routelu-you-lei.md)
* [Controller控制器类](doc/ji-chu-fu-wu/controllerkong-zhi-qi-lei.md)
* [View视图类](doc/ji-chu-fu-wu/viewshi-tu-lei.md)
* [Request请求类](doc/ji-chu-fu-wu/requestqing-qiu-lei.md)
* [Response响应类](doc/ji-chu-fu-wu/responsexiang-ying-lei.md)
* [Event事件类](doc/ji-chu-fu-wu/eventshi-jian-lei.md)
* [Listener监听类](doc/ji-chu-fu-wu/listenerjian-ting-lei.md)
* [Subscriber多事件监听](doc/ji-chu-fu-wu/subscriberduo-shi-jian-jian-ting.md)
* [EventDispatcher事件调度](doc/ji-chu-fu-wu/eventdispatchershi-jian-diao-du-lei.md)
* 同步服务\(用于服务开发\)
* FileCache
* RedisCache
* Log
* Dao
* Service
* 控制台
* [Service](doc/tong-bu-fu-wu/service.md)
* [Dao](doc/tong-bu-fu-wu/dao.md)
* [Cache](doc/tong-bu-fu-wu/rediscache.md)
* [Log日志类](doc/tong-bu-fu-wu/logri-zhi-lei.md)
* [FileCache文件缓存类](doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md)
* [控制台](doc/kong-zhi-tai/kong-zhi-tai.md)

### 环境依赖

Expand Down
10 changes: 5 additions & 5 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* [Subscriber多事件监听](doc/ji-chu-fu-wu/subscriberduo-shi-jian-jian-ting.md)
* [EventDispatcher事件调度](doc/ji-chu-fu-wu/eventdispatchershi-jian-diao-du-lei.md)
* [同步服务\(Service开发\)](tong-bu-fu-wu.md)
* [Service](tong-bu-fu-wu/service.md)
* [Dao](tong-bu-fu-wu/dao.md)
* [Cache](tong-bu-fu-wu/rediscache.md)
* [Log日志类](tong-bu-fu-wu/logri-zhi-lei.md)
* [FileCache文件缓存类](tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md)
* [Service](doc/tong-bu-fu-wu/service.md)
* [Dao](doc/tong-bu-fu-wu/dao.md)
* [Cache](doc/tong-bu-fu-wu/rediscache.md)
* [Log日志类](doc/tong-bu-fu-wu/logri-zhi-lei.md)
* [FileCache文件缓存类](doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md)
* [控制台](kong-zhi-tai.md)

Empty file removed doc/fu-wu-zhong-xin.md
Empty file.
Empty file removed doc/ji-chu-fu-wu.md
Empty file.
42 changes: 42 additions & 0 deletions doc/kong-zhi-tai/kong-zhi-tai.md
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.
12 changes: 6 additions & 6 deletions doc/yin-yan/huan-jing-yi-lai.md
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网址时依赖的模块,可以选择性开启


14 changes: 7 additions & 7 deletions doc/yin-yan/qi-dong-xiang-mu.md
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 removed tong-bu-fu-wu.md
Empty file.

0 comments on commit 9a57600

Please sign in to comment.