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