码迷,mamicode.com
首页 > 数据库 > 详细

YUM安装 Linux+Apache+MySQL+PHP

时间:2018-05-23 20:44:25      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:-o   res   etc   epel   systemctl   server   配置   str   https   

YUM安装 Linux+Apache+MySQL+PHP

 

配置YUM源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum -y install epel-release

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

 

 

安装LAMP5

yum install -y httpd httpd-devel mariadb mariadb-server mysql-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

 

systemctl restart httpd
systemctl restart mariadb

 

 

安装LAMP7

yum install -y httpd httpd-devel mariadb mariadb-server mysql-devel php70w php70w-intl php70w-mysql php70w-common php70w-gd php70w-mbstring php70w-mcrypt php70w-devel php70w-xml

 

systemctl restart httpd
systemctl restart mariadb

 

YUM安装 Linux+Apache+MySQL+PHP

标签:-o   res   etc   epel   systemctl   server   配置   str   https   

原文地址:https://www.cnblogs.com/LyShark/p/9062631.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!