Cree un repositorio de YUM compartido por FTP

Configure el uso compartido de ftp yum
1. Apague el firewall
systemctl detener firewalld
systemctl deshabilitar firewalld

Cerrar selinux
setenforce 0 // cerrar temporalmente

  1. Configure la fuente de yum
    /etc/yum.repos.d/repo.repo

[centos]
name = centos
baseurl = file: /// opt / centos
enabled = 1
gpgcheck = 0

mkdir -p / dev / cdrom
mount / dev / cdrom / opt / centos
yum limpiar todo; yum makecache

3. 安装 vsftpd
yum install -y vsftp
echo “anon_root = / opt” >> / etc / vsftpd / vsftpd
systemctl start vsftpd
systemctl enable vsftp

4. Verificación de la página web

2.Haz un almacén de yum

yum install -y createrepo

mkdir / dvd / test
createrepo / dev / test
generará un archivo repodate en el mismo directorio que test

Finalmente, configure yum

[centos2]
nombre = centos2
baseurl = file: /// dvd / test
enabled = 1
gpgcheck = 0

Supongo que te gusta

Origin blog.csdn.net/smileui/article/details/104762881
Recomendado
Clasificación