yum -y upgrade 只更新软件包,不更新内核
yum install nginx
systemctl restart nginx -y
网站根目录 /usr/share/nginx/html
//nginx 重写 rewrite
/etc/nginx/nginx.conf文件下
//在 location / { 　} 上
include /网站根目录/nginx.htaccess
//nginx.htaccess 写入以下内容
if (!-e $request_filename) {
         rewrite  ^(.*)$  /index.php?s=$1  last;
         break;
} 
systemctl restart nginx
------------ 安装php7.2 -----------------
yum install php -y
yum install php-sqlite3 -y
yum install php-pdo php-gd
yum install php-mysqlnd
//后台返回数据json报错记得安装php-json
yum install php-json
vim /etc/nginx/nginx.conf.default 
index.html前加入index.php
------------ 安装mysql-----------------
yum install mysql-server
systemctl restart mysqld.service
mysql -uroot -p //回车
//远程访问数据库
update mysql.user set host='%';
flush privileges;
//更改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'qq282246101';
flush privileges;
exit;