22、

A, nginx-php-cpu installation configuration

Remarks:

① premise requires the latest version of docker

② core edition

 

(1) create nginx-php-cpu and assign permissions

[root@localhost /]# mkdir nginx-php-cpu
[root@localhost /]# chmod -R 777 nginx-php-cpu/
[root@localhost /]# cd nginx-php-cpu/

(2) installation package upload

nginx-php-cpu.zip and pertest.war

 (3) extracting [root @ localhost nginx-php-cpu] # unzip nginx-php-cpu.zip 

 

(4) into the nginx-php-cpu

[root@localhost nginx-php-cpu]# cd nginx-php-cpu/

 (5) View image files:

Because can not afford the nginx and php installed virtual machine running performance can not locate the problem, then you use the image file Makefile 

 [root@localhost nginx-php-cpu]# cat Makefile 

 (6) docker help documentation

[root@localhost nginx-php-cpu]# docker --help

 (7)

[root@localhost nginx-php-cpu]# cd pertest/
[root@localhost pertest]# ll

 (8) View Profile

[root@localhost nginx-php-cpu]# cat Dockerfile.nginx

 

[root@localhost nginx-php-cpu]# cat Dockerfile.php-fpm

 

 

Guess you like

Origin www.cnblogs.com/zousongbai/p/11078699.html