Contents ...
udn網路城邦
ubuntu 16 nfs
2020/09/18 15:24
瀏覽73
迴響0
推薦0
引用0

ubuntu16 nfs

sudo apt-get install nfs-kernel-server

sudo gedit /etc/exports

/home/gcat *(rw,sync,no_subtree_check,no_root_squash)

sudo service nfs-kernel-server restart

sudo showmount -e localhost

dmesg
[ 5180.437281] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory

//---vm ubuntu 12 client

sudo apt-get install nfs-common


//---fl_am5718 client

sudo apt-get install nfs-common

showmount -e 192.168.0.102

mount -t nfs 192.168.0.102:/home/gcat ~/nfs1

==========

error :

$ sudo mount -t nfs 192.168.0.104:/gcat/home ~/nnn

mount.nfs: access denied by server while mounting 192.168.0.104:/gcat/home

debug:

$ showmount -e 192.168.0.104

Export list for 192.168.0.104:

/home/gcat *

root casue : typo ,  change from

/gcat/home

to

/home/gcat


限會員,要發表迴響,請先登入