1、安装工具
yum -y install nfs-utils
2、创建共享目录
mkdir -p /mnt/share
3、查看服务端以共享的目录
[root@tt ~]
Export list for 172.220.63.7:
/testworm2 *
/HCS8 10.1.19.19,
4、挂载
创建挂载目录
mkdir -p /mnt/share
mount -t nfs 172.220.63.7:/HCS8 /mnt/share/
5、查看是否挂载成功
[root@tt ~]
Filesystem Size Used Avail Use% Mounted on
devtmpfs 2.9G 0 2.9G 0% /dev
tmpfs 2.9G 0 2.9G 0% /dev/shm
tmpfs 2.9G 10M 2.9G 1% /run
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 4.8G 46G 10% /
/dev/sda1 1014M 152M 863M 15% /boot
/dev/mapper/centos-home 443G 33M 443G 1% /home
tmpfs 581M 0 581M 0% /run/user/0
172.220.63.7:/HCS8 17T 15T 1.8T 90% /mnt/repo