nfs安装和使用

1. nfs安装
yum install nfs-utils
yum install portmap


2. nfs配置
vi /etc/exports

/disk1/CIS/shared *(r,sync)


3. 启动nfs,这里启动顺序不能颠倒
/sbin/service rpcbind restart
/sbin/service nfs restart


4. 查看共享服务
showmount -e


5. 客户端连接
mount 172.16.95.14:/disk1/CIS/testcase /disk1/CIS/shared


6. 查看客户端连接目录信息
showmount -a


7. 取消挂载
umount /disk1/CIS/shared

猜你喜欢

转载自42087743.iteye.com/blog/2115992