Explorar el Código

README.md 文件更新 (框架相关的重要信息都在这里说明)

shishao-home hace 6 años
padre
commit
b3d74cb721
Se han modificado 1 ficheros con 24 adiciones y 16 borrados
  1. 24 16
      README.md

+ 24 - 16
README.md

@@ -1,22 +1,8 @@
-Yii 2 Advanced Project Template
+Yii 2 框架环境说明
 ===============================
 
-Yii 2 Advanced Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for
-developing complex Web applications with multiple tiers.
 
-The template includes three tiers: front end, back end, and console, each of which
-is a separate Yii application.
-
-The template is designed to work in a team development environment. It supports
-deploying the application in different environments.
-
-Documentation is at [docs/guide/README.md](docs/guide/README.md).
-
-[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-app-advanced/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced)
-[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-app-advanced/downloads.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced)
-[![Build Status](https://travis-ci.org/yiisoft/yii2-app-advanced.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-app-advanced)
-
-DIRECTORY STRUCTURE
+文件目录说明
 -------------------
 
 ```
@@ -52,3 +38,25 @@ environments/            contains environment-based overrides
 tests                    contains various tests for the advanced application
     codeception/         contains tests developed with Codeception PHP Testing Framework
 ```
+
+### 创建.env文件
+
+```shell
+cp .env.example .env
+```
+
+#### 1.数据库配置
+
+ ```php
+DB_DSN='mysql:host=127.0.0.1;dbname=huahuibao' # ip地址;数据库名称
+DB_USERNAME='root'  # 数据库用户名
+DB_PASSWORD='353167' # 数据库密码
+```
+
+#### 2.redis 配置
+```php
+REDIS_HOST=127.0.0.1
+REDIS_PASSWORD=null # 密码为空,请写上 null
+REDIS_PORT=6379
+REDIS_DB=0
+```