文件服务器安装nfs:
# yum install rpcbind
# yum install nfs-utils
# service rpcbind start
# service nfs start
设置自启动
# chkconfig nfs on
# chkconfig rpcbind on
修改配置文件添加共享目录:
#vi /etc/exports
/home/documents/ *(rw,no_root_squash,no_all_squash,sync)
其他服务器执行挂载命令:
mount -t nfs -o nolock,rw,async,wsize=8192,rsize=8192 192.168.70.xxx:/home/documents /home/documents
取消挂载命令:umount /home/documents