Centos 挂载Nas
1. 安装nfs协议工具
- sudo yum -y install nfs-utils
- showmount -e 172.16.2.151 ,结果显示如下
(base) [root@localhost ]# showmount -e 172.16.2.151
Export list for 172.16.2.151:
/2/VIDEO 172.16.0.0/16
/1/PUBLIC 172.16.0.0/16,10.0.10.0/24
(base) [root@localhost ]#
说明以上两个文件夹可以通过nfs协议挂载到本地
- mkdir /mnt/nas
- mount -t nfs 172.16.2.151:/1/PUBLIC /mnt/nas -o nfsvers=3 (如果出现问题mount.nfs: Protocol not supported,将nfsvers改成4)
- umount 172.16.2.151:/1/PUBLIC