1 2 |
$ uname -a Linux hogehoge 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
Install Server 192.168.11.20
1 2 3 |
# apt install nfs-kernel-server # vi /etc/exports |
1 2 3 4 5 6 7 8 9 10 11 12 |
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /home/user/nfs_export 192.168.11.10/24(rw,sync,no_subtree_check) |
1 2 3 |
# /etc/init.d/nfs-kernel-server restart # exportfs -ra # exportfs -v |
Install Client 192.168.11.10
1 |
# apt install nfs-common |
1 2 |
# mount -t nfs -o rw 192.168.11.20:/home/user/nfs_export /var/nfs_import # mount -t nfs 192.168.11.20:/home/user/nfs_export /var/nfs_import |
See
- https://qiita.com/salty-vanilla/items/5bc95ad47af6bf051bf7
- http://www.atmarkit.co.jp/flinux/rensai/linuxtips/367usenfs.html
- https://hhelibex.hatenablog.jp/entry/20111205/1323111243