本篇使用 Ubuntu,其他發行版可能會有些許不同。
掛載 NFS
安裝 nfs-common
apt update
apt install nfs-common
建立掛載點
mkdir /mnt/nfs
掛載 NFS
mount -t nfs ip:/路徑 /掛載點
取消掛載
umount /掛載點
指定 NFS 版本
可以使用 -o nfsvers=3
指定 NFS 版本
範例:
mount -t nfs -o nfsvers=3 ip:/路徑 /掛載點
開機自動掛載
nano /etc/fstab
在最後一行加入
ip:/路徑 /掛載點 nfs 參數 0 0
範例:
192.168.28.215:/Multimedia /mnt/nfs nfs nfsvers=3 0 0
作者
Bu
發佈時間
2024年11月28日 星期四