创建适配主机的nginx和php的包
## 先m01上配置一遍wordpress
# 安装nginx,php包
# 官方源安装
vim /etc/yum.repos.d/nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
vim /etc/yum.repos.d/php.repo
[php-webtatic]
name = PHP Repository
baseurl = http://us-east.repo.webtatic.com/yum/el7/x86_64/
gpgcheck = 0
## 创建一个主机适配的nginx和php软件
yum -y install php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-gd php71w-mcrypt php71w-mbstring php71w-pdo php71w-xml php71w-fpm php71w-mysqlnd php71w-opcache php71w-pecl-memcached php71w-pecl-redis php71w-pecl-mongodb nginx --downloadonly --downloaddir=/root/nginx_php
## rpm包在/root/nginx_php
打包后就可以用了
# 安装命令
rpm ivh /root/nginx_php/*.rpm
yum localinstall -y /root/nginx_php/*.rpm
标签:主机,nginx,yum,php71w,rpm,php,root
From: https://www.cnblogs.com/xiutai/p/17429399.html