红联Linux门户
Linux帮助

CentOS自动mount NFS文件夹

发布时间:2014-11-04 09:31:18来源:linux网站作者:sheismylife

CentOS自动mount NFS文件夹,在/etc/fstab下写下这句:


10.112.18.110:/NFSSharedFolder /opt/shareOn110 nfs rsize=8192,wsize=8192,timeo=14,intr


最后面用,分隔的都是mount选项,参考:


http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-client-config-options.html


上面这句的命令相当于手工执行:


mount -t nfs 10.112.18.110:/NFSSharedFolder /opt/shareOn110