Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
988750e7
Commit
988750e7
authored
Apr 27, 2017
by
Mike Erickson
Committed by
GitHub
Apr 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #867 from lincome/master
cp env-example .env
parents
6348d032
c7a726cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
README-zh.md
README-zh.md
+8
-5
No files found.
README-zh.md
View file @
988750e7
...
@@ -64,20 +64,23 @@ Laradock 努力简化创建开发环境过程。
...
@@ -64,20 +64,23 @@ Laradock 努力简化创建开发环境过程。
让我们了解使用它安装
`NGINX`
,
`PHP`
,
`Composer`
,
`MySQL`
和
`Redis`
,然后运行
`Laravel`
让我们了解使用它安装
`NGINX`
,
`PHP`
,
`Composer`
,
`MySQL`
和
`Redis`
,然后运行
`Laravel`
1.
将 Laradock 放到你的 Laravel 项目中:
1.
将 Laradock 放到你的 Laravel 项目中:
```
bash
```
bash
git clone https://github.com/laradock/laradock.git
git clone https://github.com/laradock/laradock.git
```
```
2.
进入 Laradock 目录,然后运行这些容器。
2.
进入 Laradock 目录
```
bash
cp
env-example .env
```
3.
运行这些容器。
```
bash
```
bash
docker-compose up
-d
nginx mysql redis
docker-compose up
-d
nginx mysql redis
```
```
3.
打开你
的
`.env`
文件,然后设置
`mysql`
的
`DB_HOST`
和
`redis`
的
`REDIS_HOST`
。
4.
打开你的Laravel 项目
的
`.env`
文件,然后设置
`mysql`
的
`DB_HOST`
和
`redis`
的
`REDIS_HOST`
。
4
.
打开浏览器,访问 localhost:
5
.
打开浏览器,访问 localhost:
<a
name=
"features"
></a>
<a
name=
"features"
></a>
### 特点
### 特点
...
@@ -461,7 +464,7 @@ REDIS_HOST=redis
...
@@ -461,7 +464,7 @@ REDIS_HOST=redis
],
],
```
```
3 - 启用 Redis 缓存或者开启 Session 管理也在
`.env`
文件中用
`redis`
替换默认
`file`
设置
`CACHE_DRIVER`
和
`SESSION_DRIVER`
3 - 启用 Redis 缓存或者开启 Session 管理也在
`.env`
文件中用
`redis`
替换默认
`file`
设置
`CACHE_DRIVER`
和
`SESSION_DRIVER`
```
env
```
env
CACHE_DRIVER=redis
CACHE_DRIVER=redis
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment