一.安装nginx(这里我安装的是1.15)
1.安装必要的依赖
yum install pcre pcre-devel openssl openssl-devel -y
2.添加用户群组
useradd nginx -s /sbin/nologin -M
3.安装nginx
tar -zxvf nginx-1.15.6.tar.gz
cd nginx-1.15.6
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install
二.安装php
1.安装必要的依赖
yum install bzip2-devel libmcrypt-devel libxml2-devel libjpeg-devel libpng-devel freetype-devel libicu-devel libxslt* curl curl-devel libxslt-devel* -y
2.安装libmcrypt
tar -zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install
sleep 2
/sbin/ldconfig
3.安装php
./confi