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


你可能感兴趣的:(centos)