用mount掛載遠程服務器網絡硬盤


環境:

服務器:192.168.20.204

客戶端:192.168.20.203

1. 在服務器配置/etc/export  添加可以共享的文件夾和允許的客戶端地址

/home/dir 192.168.20.203(rw,no_root_squash,async)

要加上no_root_squash,async,不然會出現reason given by server: Permission denied

重啟nfs服務器

service nfs restart

2. 在客戶端運行

mkdir -p /mnt/dir    創建掛載點

mount -t nfs 192.168.20.204:/home/dir /home/dir

一定要先創建掛載點,不然會出現mount point does not exist的錯誤

3. RPC Error: Program not registered錯誤

服務沒啟動。。

運行service nfs restart

 

參考文章:http://zhuang13.blog.51cto.com/3044154/557879


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM