标签:yum system mysql sha opcache vim share usr 编辑
#安装nginx
yum install nginx #代码放在/usr/share/nginx/html,配置文件在/etx/nginx
#编辑nginx配置
vim /etc/nginx/nginx.conf
#重启nginx服务
systemctl restart nginx.service
#安装php7.2环境配置文件
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
#安装php7.2
yum install php72w
#安装php扩展
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
#重启php-fpm服务
systemctl restart php-fpm.service
#安装mysql5.7环境配置文件
curl -LO http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum localinstall mysql57-community-release-el7-11.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
#安装mysql5.7
yum install mysql-community-server
标签:yum system mysql sha opcache vim share usr 编辑
原文地址:https://www.cnblogs.com/hjcan/p/10842465.html