Skip to content

Commit 80a7e77

Browse files
author
sioomy
committed
data/wwww
1 parent c47201f commit 80a7e77

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ ext/coro_http 目录是为了测试协程开发的PHP扩展,提供了coro_http
184184
1.拉取镜像
185185
```
186186
docker pull phpcoro/php-fpm-coro
187-
docker run --privileged -p 8083:80 phpcoro/php-fpm-coro
187+
docker run --privileged -p 8083:80 -v `pwd`:/data/www phpcoro/php-fpm-coro
188188
```
189189

190190
2.浏览器输入网址
@@ -201,7 +201,7 @@ docker run --privileged -p 8083:80 phpcoro/php-fpm-coro
201201
```
202202
2.运行docker:
203203
```
204-
docker run --privileged -p 8083:80 -v `pwd`/tutorial:/data/soft/php-fpm-coroutine/tutorial php-fpm-coro
204+
docker run --privileged -p 8083:80 -v `pwd`/tutorial:/data/www php-fpm-coro
205205
```
206206
3.浏览器输入网址
207207
```
@@ -427,7 +427,7 @@ It is important to note that in chrome, two windows can be accessed, but the fol
427427
1.pull images from docker hub
428428
```
429429
docker pull phpcoro/php-fpm-coro
430-
docker run --privileged -p 8083:80 phpcoro/php-fpm-coro
430+
docker run --privileged -p 8083:80 -v `pwd`:/data/www phpcoro/php-fpm-coro
431431
```
432432

433433
2.browsers enter the URL
@@ -448,7 +448,7 @@ docker run --privileged -p 8083:80 phpcoro/php-fpm-coro
448448
2. run docker:
449449

450450
```
451-
docker run --privileged -p 8083:80 -v `pwd`/tutorial:/data/soft/php-fpm-coro/tutorial php-fpm-coro
451+
docker run --privileged -p 8083:80 -v `pwd`/tutorial:/data/www php-fpm-coro
452452
```
453453

454454
3. browsers enter the URL

‎tutorial/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM centos:latest
22

33
RUN mkdir -p /data/soft/
4+
RUN mkdir -p /data/www/
45

56
RUN yum -y install git
67
RUN yum -y install autoconf

‎tutorial/conf/nginx.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ http {
4141
#access_log logs/host.access.log main;
4242

4343
location / {
44-
root /data/soft/php-fpm-coroutine/tutorial/;
44+
root /data/www/;
4545
index index.html index.htm;
4646
}
4747

@@ -63,10 +63,10 @@ http {
6363
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
6464
#
6565
location ~ \.php$ {
66-
root /data/soft/php-fpm-coroutine/tutorial/;
66+
root /data/www/;
6767
fastcgi_pass 127.0.0.1:9000;
6868
fastcgi_index index.php;
69-
fastcgi_param SCRIPT_FILENAME /data/soft/php-fpm-coroutine/tutorial/$fastcgi_script_name;
69+
fastcgi_param SCRIPT_FILENAME /data/www/$fastcgi_script_name;
7070
include fastcgi_params;
7171
}
7272

0 commit comments

Comments
 (0)