cd nginx-1.12.2
useradd -s /sbin/nologin nginx
./configure
make
make install
yum -y install mariadb mariadb-server mariadb-devel
yum -y install php php-rpm php-mysql
sed -i '65,71s/#//' $file
sed -i 'SCRUIPT_FILENAME/d' $file
sed -i 'fastcgi_params/s/fastcgi_params/fastcgi.conf' $file
/usr/local/nginx/sbin/nginx
systemctl start php-fpm
systemctl start mariadb
总结:。。。。。。。。。此处省略一万字