使用前,先要安裝NFS套件

CentOS5
# yum install nfs-utils portmap
CentOS6
# yum install nfs-utils rpcbind

可以使用下面指令查看server分享的資源

# showmount -e 192.168.10.10

Export list for 192.168.10.10:
/mnt/share 192.168.10.0/24
 
掛載使用以下指令
# mount -t nfs 192.168.10.10:/mnt/share /mnt/share
 
可以加 -o proto=tcp ,指定NFS使用tcp來傳輸
 
加到開機自動mount
 
# vi /etc/fstab
加入一行
192.168.10.10:/mnt/share /mnt/share nfs defaults 0 0

 

arrow
arrow
    全站熱搜

    痞客興 發表在 痞客邦 留言(0) 人氣()