suse 挂载


主机  A IP:10.166.112.185
客户端B IP:10.166.112.229

首先A建立目录/home/mountfiles,B建立/mnt/dir目录

准备通过NFS,将B上的/mnt/dir挂载到A的/home/mountfiles中

A服务器在/etc/exports增加以下语句:
/home/mountfiles 10.166.112.*(rw,no_root_squash,async)

服务器端要求:
portmap 启动 # service portmap start
nfs 启动 # /etc/init.d/nfsserver start   (配置了/etc/exports后,此服务需要重启)

客户端要求:
portmap 启动 # service portmap start

B客户端执行以下语句:
mount -t nfs 10.166.112.185:/home/mountfiles /mnt/dir

客户机执行删除挂载umount -l 10.166.112.185:/home/mountfiles

猜你喜欢

转载自hackpro.iteye.com/blog/965990