美文网首页
网盘-nfs

网盘-nfs

作者: 李孝伟 | 来源:发表于2018-03-21 09:31 被阅读8次

1、安装软件

yum -y install nfs-utils rpcbind

2、修改配置

nfs 的配置文件 /etc/expots

vi /etc/exports

/data 10.0.200.10(rw,no_root_squash)

/data/supply 10.0.200.8(rw,no_root_squash)

/data/supply 10.0.200.9(rw,no_root_squash)

3、配置生效(有时需要先启动nfs)

exportfs -r

4、启动&开机启动

service nfs start

service rpcbind start

chkconfig rpcbind on

chkconfig nfs on

5、客户端挂(客户端也要安装)

showmount -e 192.168.10.16

mount -t nfs 192.168.10.16:/data /data

mount -t nfs 192.168.10.16:/data/sfs/upload ./upload

mount -t nfs 192.168.10.16:/data/supply/upload ./upload

mount -t nfs 192.168.10.16:/data/portal/upload ./upload

6、取消挂载

umount -t nfs 192.168.10.16:/data /data

7、开机自动挂载

vi /etc/fstab

192.168.10.16:/data/supply/upload /data/openServer2.0/eac/upload nfs rw

192.168.10.16:/data/sfs/upload /home/openServer2.0/eac/upload nfs rw

相关文章

网友评论

      本文标题:网盘-nfs

      本文链接:https://www.haomeiwen.com/subject/yljwqftx.html