搭建环境说明:
系统版本:Red Hat Enterprise Linux Server release 6.8 (Santiago)
内核版本:Linux 2.6.32-642.el6.x86_64
内网环境,无法使用网络yum源
基础环境配置:
关闭防火墙:service iptables stop
设置防火墙开机不启动:chkconfig iptables off
临时修改selinux状态:setenforce 0
永久修改(需重启后生效):sed -i 's/SELINUX=*/SELINUX=disabled/g' /etc/selinux/config
查看selinux状态:getenforce
现在对应对应系统版本iso文件
上传对应的镜像文件到服务器上
创建挂载点:mkdir /iso
将镜像挂载到对应的挂载点:mount -o loop /home/Soft/rhel-server-6.8-x86_64-dvd.iso /iso
配置本地yum源:
vim /etc/yum.repos.d/local.repo
[localrepo]
name = localrepo
baseurl = file:///iso
enabled = 1
gpgcheck = 0
清理和列出可用的yum源
yum clean all
yum repolist
使用本地yum源安装基础环境的包:
yum install ncurses-devel -y
yum install libaio -y
yum install glibc-devel.i686 glibc-devel -y
yum install gcc gcc-c++ -y
yum -y install cmake
========================&#