ftp 搭建 centos 源
1. yum -y install vsftpd*
2. /etc/init.d/vsftpd restart
3. mount CentOS-7-aarch64-Everything-1810.iso mnt/
4. cp mnt/* /var/ftp/pub/ -rf
web登陆: ftp://192.168.1.100/pub/
centos yum配置:
[root@host ~]# cat /etc/yum.repos.d/iso.repo [ISO] name=iso baseurl=ftp://192.168.1.100/pub/ gpgcheck=0 enabled=1 cachedir=/var/cache/yum keepcache=1 [epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7