######linux中的软件管理#####
###1、使用已经网络安装资源安装软件####
vim /etc/yum.repos.d/yum.repo ##文件名称必须以repo结尾
[rhel7.3] ##仓库名称
name=rhel7.3 对软件源的描述
baseurl=file:///rhel7.3 ###file://文件读取的格式
gpgcheck=0 ###1允许授权用户,
yum clean all
##2、配置本地yum源####
1、获得一个与本机系统版本一致的系统镜像
2、挂载镜像
mount /XXX/XXXXX.iso(镜像的绝对路径) /rhel7.3(名称可以随便,若没有该文件,直接建立一个目录)
3、设定永久挂载
vim /etc/rc.d/rc.local
mount /XXX/XXXXX.iso(镜像的绝对路径) /rhel7.3
###3、共享型yun源的部署
1、在一台已经配置好本地yum源的主机中安装httpd
yum install httpd
2、配置网络yum源
systemctl start httpd
systemctl stop firewalld
systemctl enable httpd
systemctl disable firewalld
临时挂载
mkdir /var/ww