[root@yum ~]# yum -y install vsftpd
systemctl start vsftpd
systemctl enable vsftpd
netstat -anput|grep vsftpd
yum -y install ftp
ftp 192.168.2.30
umount /dev/sr0
mkdir /var/ftp/centos7
mount /dev/sr0 /var/ftp/centos7/
vim /etc/yum.repos.d/local.repo
yum clean all
yum makecache
[root@yum ~]# cat /etc/yum.repos.d/xx.repo
[xxx]
name=xxx
baseurl=ftp://192.168.2.30/centos7
gpgcheck=0
enabled=1
yum -y install nfs-utils rpcbind
[root@yum ~]# mkdir /data
[root@yum ~]# vim /etc/exports
[root@yum ~]# cat /etc/exports
/data 192.168.209.100(rw)
[root@yum ~]# systemctl start rpcbind
[root@yum ~]# systemctl enable rpcbind
[root@yum ~]# systemctl start nfs
[root@yum ~]# systemctl enable nfs
[root@www ~]# yum -y install nfs-utils
[root@www ~]# showmount -e 192.168.209.100
[root@www ~]# mount 192.168.209.100 :/data/opt/
[root@www ~]# tail -1 /etc/fstab
192.168.209.100:/data /opt nfs defaults,_netdev 0 0