NFS部署

一、部署

服务端

chkconfig nfs on  
 chkconfig rpcbind on  
 service rpcbind start  
 service nfs start  
 mkdir -p <your_folder>  
 vim /etc/exports  
 <your_folder> 10.133.0.0/16(rw,async,no_root_squash)  
 exportfs -a

客户端:

chkconfig nfs on  
 chkconfig rpcbind on  
 service rpcbind start  
 service nfs start  
 mkdir -p <your_local_folder>  
 mount -t nfs server_ip:<your_server_folder> <your_local_folder>  
 查看:df -h

CentOS下的NFS安装、配置、启动及mount挂载方法

(测试soft: mount -t nfs -o soft,intr,timeo=30,retry=3

comments powered by Disqus