一、LAMP的安装方法:
安装httpd、mariadb、mariadb-server、php、php-mysql相关安装包
安装httpd命令:yum -y install httpd
使用yum安装,自动解决依赖关系
[root@bogon shang]# yum -y install httpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.huaweicloud.com
正在解决依赖关系
安装mariadb命令: yum -y install mariadb mariadb-server
[root@bogon shang]# yum -y install mariadb mariadb-server
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.iij.ad.jp
* extras: mirrors.163.com
* updates: mirrors.huaweicloud.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mariadb.x86_64.1.5.5.68-1.el7 将被 安装
安装php命令:yum -y install hph-mysql
[root@bogon shang]# yum -y install php-mysql
已加载插件:fastestmirror, langpacks
Loading mirror speeds f