制作本地局域网yum源


制作本地局域网yum源

制作本地局域网yum源

1、安装vsftpd软件

yum install vsftpd -y

2、启动vsftpd

systemctl enable vsftpd

systemctl start vsftpd

3、挂载iso系统镜像到虚拟机

4、配置yum仓库

mkdir -p /var/ftp/centos7
mount /dev/sr0  /var/ftp/centos7

cat >/yum.repo.d/ftp_7.repo <<EOF
[ftp]
name=ftpbase
baseurl=ftp://10.0.0.100/centos7
enabled=1
gpgcheck=0
EOF

yum clean all

 

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注