主題:
[教學][RHEL] NFS
[打印本頁]
發表人:
ispeter
時間:
2005-12-17 02:52 PM
主題:
[教學][RHEL] NFS
此文章來自 ispeter , 請勿轉載 !!
[教學][RHEL] NFS
NFS 需要下列這兩個套件:
# rpm -ivh nfs-utils-1.0.5-3
# rpm -ivh portmap-4.0-56
設定步驟:
NFS 需要 Portmap 的 RPC,所以要先啟動 Portmap
# chkconfig portmap on
# service portmap start
# netstat -tunple | grep portmap
啟動 NFS
# chkconfig nfs on
# service nfs start
簡易設定 "/etc/exports"
# vi /etc/exports
增加一行
CODE:
[Copy to clipboard]
/tmp
重新啟動 NFS
# service nfs restart
檢查
# showmount -e 127.0.0.1
進階設定 "/etc/exports"
# vi /etc/exports
下列選項有下列選項可供選擇:
CODE:
[Copy to clipboard]
/tmp (ro)
/tmp station4.example.com(rw)
/tmp station4.example.com(rw)station5.example.com(ro)
/tmp *.example.com(ro)
/tmp 192.168.1.0/255.255.255.0(rw)
重新啟動 NFS
# service nfs restart
檢查
# showmount -e 127.0.0.1
Mount NFS
# mkdir /mnt/nfs ; mount 61.56.191.187:/tmp /mnt/nfs
# vi /etc/fstab
CODE:
[Copy to clipboard]
61.56.191.187:/tmp /mnt/nfs nfs defaults 0 0
歡迎光臨 TWed2k (http://twed2k.org/)
Powered by Discuz! 4.1.0