1. 为yum添加IUS 仓库
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm -y
2. Nginx
sudo yum install nginx -y
sudo systemctl start nginx
sudo systemctl enable nginx
3. MariaDB
sudo yum remove mariadb-libs -y
sudo yum install mariadb101u-server -y
sudo systemctl start mariadb
sudo systemctl enable mariadb
mysql_secure_installation
4. PHP56u
sudo yum install php56u-fpm php56u-cli php56u-xml php56u-gd php56u-mysqlnd php56u-pdo php56u-mcrypt php56u-mbstring php56u-json php56u-opcache -y
sudo systemctl start php-fpm
sudo systemctl enable php-fpm
网友评论