Skip to content

Commit 783badd

Browse files
authored
Update README.md
1 parent d1d1d73 commit 783badd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,15 @@ DNMP(Docker + Nginx/Openresty + MySQL5,8 + PHP5,7,8 + Redis + ElasticSearch +
111111
### 4. 拷贝并命名配置文件(Windows系统请用`copy`命令),启动:
112112
```
113113
$ cd dnmp # 进入项目目录
114-
$ cp env.sample .env # 复制环境变量文件
114+
$ cp env.sample .env # 复制环境变量文件。note:安装php扩展请查看文档中的3.2小节
115115
$ cp docker-compose.sample.yml docker-compose.yml # 复制 docker-compose 配置文件。默认启动3个服务:
116116
# Nginx、PHP7和MySQL8。要开启更多其他服务,如Redis、
117117
# PHP5.6、PHP5.4、MongoDB,ElasticSearch等,请删
118118
# 除服务块前的注释
119119
$ docker-compose up # 启动
120120
```
121-
### 5. 在浏览器中访问:`http://localhost``https://localhost`(自签名HTTPS演示)就能看到效果,PHP代码在文件`./www/localhost/index.php`
121+
#### 5. 在浏览器中访问:`http://localhost``https://localhost`(自签名HTTPS演示)就能看到效果,PHP代码在文件`./www/localhost/index.php`
122+
122123

123124
## 3.PHP和扩展
124125
### 3.1 切换Nginx使用的PHP版本

0 commit comments

Comments
 (0)