NFS配置的具體代碼
作者:佚名 
  文章摘要:下面我們來(lái)對(duì)NFS配置的具體內(nèi)容進(jìn)行以下分析。文中列舉了具體的代碼,希望對(duì)大家有所幫助。
 NFS是文件系統(tǒng),在網(wǎng)絡(luò)中起到了很重要的作用。下面我們就來(lái)介紹一下NFS配置的具體代碼。希望文中介紹的內(nèi)容面,能讓大家對(duì)NFS文件系統(tǒng)(nfs file system )的配置有所了解。
相應(yīng)NFS配置文件
[1] /etc/dfs/dfstab;(nfs server)
例如:
- # vi /etc/dfs/dfstab
 - share -F nfs -o rw=engineering -d "home dirs" /export/home
 - share -F nfs -o ro -d "app dirs" /export/app
 - share -F nfs -o ro -d "man dirs" /usr/share/man
 - [2] /etc/vfstab;(nfs client)
 - # vi /etc/vfstab
 - i2:/export/home - /export/home nfs - yes soft,bg
 - i2:/export/app - /export/app nfs - yes soft,bg
 - i2:/usr/share/man - /usr/share/man nfs - yes soft,bg
 - rw|ro,bg|fg, soft|hard, intr|nointr,suid|nosuid, timeo=n
 - default=11x.1sec, retry=n 1k.
 
相應(yīng)系統(tǒng)進(jìn)程
- [1] mountd
 - [2] nfsd
 - [3] statd
 - [4] lockd
 
NFS配置相關(guān)命令
[1] share,
例如:
- # share -F nfs /export/home
 - # share -F nfs -o ro /usr/share/man
 - [2] unshare,
 - [3] shareall,
 - [4] unshareall;
 - [5] mount
 
例如:
- # mount nfsserver:/export/home /export/home
 - # mount nfsserver:/export/app /export/app
 - # mount nfsserver:/usr/share/man /usr/share/man
 - [6] umount,
 - [7] mountall,
 - [8] umountall,
 - [9] dfshares host,
 - [10] dfmounts
 - [11] /etc/init.d/nfs.server; /etc/init.d/nfs.client
 
例如:
- # /etc/init.d/nfs.server start
 
責(zé)任編輯:佟健 
                    來(lái)源:
                    網(wǎng)絡(luò)整理
 














 
 
 
 
 
 
 