1.首先挂载光盘映像到挂载点:
[root@localhost ~]# mount /dev/sr0 /mnt/
2.关闭Linux操作系统的防火墙:
[root@localhost ~]#systemctl stop firewalld
3.关闭SeLinux:
[root@localhost ~]#setenforce 0
4.配置yum仓库:
[root@localhost ~]# vim /etc/yum.repos.d/hehe.repo
[hehe] //源标识
name=xixi//源名称
baseurl=file:///mnt //软件包的位置file本地文件://协议
gpgcheck=0
enable=1 //开机启动,默认不配置enable也是等于1
5.安装http服务:
[root@localhost ~]yum install httpd -y
6.安装mariadb数据库(默认存在):
[root@localhost ~]yum install mariadb -y
7.初始化数据库:
[root@localhost ~]mysql_secure_installation