阿里云 Centos 7 PHP7环境配置 LNMP
阿里云 Centos 7 PHP7环境配置 LNMP (centos7+nginx+MySQL5.7.9+PHP7) 首先更新系统软件</str> $ yum update 安装nginx</str></str> 1.安装nginx源 $ yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2.安装nginx $ yum install nginx 3.启动nginx $ service nginx start Redirecting to /bin/systemctl start nginx.service 4.访问http://你的ip/ 如果成功安装会出来nginx默认的欢迎界面 安装MySQL5.7.* </str> 1.安装mysql源</str> $ yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm 2.安装mysql 这是由于yum安装了旧版本的GPG keys造成的,解决办法就是 引用 rpm --import /etc/pki/rpm-gpg/RPM* $ yum install