• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

构建基础镜像

构建服务器端编程语言(专业超文本预处理器的缩写)镜像

来自centos:web

运行yum安装-y https://镜子。金枪鱼。清华。edu。cn/remi/enterprise/remi-release-7。rpm yum安装PHP 56-PHP-fpm PHP 56-PHP-MySQL-y

添加www。conf/opt/remi/PHP 56/root/etc/PHP-fpm。d/www。主配置文件

#运行useradd nginx -u 2019

添加run _ PHP。sh/usr/local/bin/run _ PHP。嘘

曝光9000

CMD['/usr/local/bin/run _ PHP。sh ']

构建wordpress-nginx镜像

来自nginx-base:v1.14.2

添加nginx。conf/usr/local/nginx/conf/nginx。主配置文件

添加run _ nginx。sh/apps/nginx/sbin/run _ nginx。嘘

运行mkdir -pv /home/nginx/wordpress

运行chown nginx。nginx/home/nginx/WordPress/-R

曝光80 443

CMD['/apps/nginx/sbin/run _ nginx。sh ']

查看镜像

]# docker图像

存储库标记图像身份创建的大小

8分钟前837MB

大约一小时前928MB

wordpress.yml

kind:部署

#apiVersion:扩展/v1beta1

应用程序接口版本:应用程序/v1

元数据:

标签:

app:

名称:

命名空间:马格杜

spec:

副本: 1

选择器:

匹配标签:

app:

模板:

元数据:

标签:

app:

spec:

集装箱:

-名称:

图片:

imagePullPolicy:如果不存在

端口:

-集装箱港口: 80

协议: TCP

name: http

-集装箱港口: 443

协议: TCP

名称: https

卷装载:

- name: wordpress

挂载路径:/home/nginx/WordPress

只读:错误

-名称:

图片:

imagePullPolicy:如果不存在

端口:

-集装箱港口: 9000

协议: TCP

name: http

卷装载:

- name: wordpress

挂载路径:/home/nginx/WordPress

只读:错误

卷:

- name: wordpress

nfs:

服务器: 192.168.64.113

路径:/data/k8 sdata/magedu/WordPress

-

kind:服务

应用程序接口版本: v1

元数据:

标签:

app:

名称:

命名空间:马格杜

spec:

:型节点端口

端口:

- name: http

端口: 80

协议: TCP

目标端口: 80

节点端口: 30031

-名称: https

端口: 443

协议: TCP

目标端口: 443

节点端口: 30033

选择器:

app:

构建服务器端编程语言(专业超文本预处理器的缩写)测试页面,index.php

?服务器端编程语言(专业超文本预处理器的缩写)

phpinfo();

测试访问

http://192.168 .64 .36030031/指数。服务器端编程语言(Professional Hypertext Preprocessor的缩写)

http://192.168.64.110:30031

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now