将传统php项目迁移到docker容器

实验环境

系统版本:centos7x3.10.0-514.el7.x86_64

关闭防火墙并禁止开机自启

systemctl stop firewalld.service
systemctl disable firewalld

关闭selinux

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux

重启 reboot

实现目的

使用php:5.6-fpm 官方镜像,并安装 nginx ,使用 supervisor 管理 php-fpm 与 nginx 进程

猜你喜欢

转载自blog.51cto.com/13043516/2439052