Linux 通过Remi 源 安装mysql php

1、安装源:

rpm -Uvh http://mirrors.zju.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
2、安装php和httpd

yum --enablerepo=remi,remi-php56 install httpd php php-common

启动http: 

systemctl starthttpd.service

systemctl enablehttpd.service


3、安装msyql(mariaDB)

yum --enablerepo=remi install mysql 
yum --enablerepo=remi install mariadb-server


启动服务

systemctl startmariadb.service

systemctl enablemariadb.service



你可能感兴趣的:(linux)