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
</pre>2、安裝php和httpd<p></p><p></p><pre code_snippet_id="626311" snippet_file_name="blog_20150324_4_9068718" name="code" class="plain">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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章