阿里云 centos7 安装apache php mysql环境

采用yum安装


启动apache

#systemctl start  httpd.service


安装mysql5.6

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

# rpm -ivh mysql-community-release-el7-5.noarch.rpm

# yum install mysql-community-server -y

#systemctl start  httpd.service


自启动

systemctl enable httpd.service

systemctl enablemysqld.service

你可能感兴趣的:(CentOS7,lamo)