Server 설정

  • Install
sudo apt-get update
sudo apt-get install -y nfs-kernel-server
sudo mkdir -pv /path/to/export
  • /etc/exportfs
/path/to/export        *(rw,sync,no_subtree_check)
  • Restart server
sudo systemctl restart nfs-server

Client 설정

  • Install
sudo apt-get update
sudo apt-get install -y nfs-common
sudo mkdir -pv /path/to/mount
  • /etc/fstab
server.ip:/path/to/export    /path/to/mount    nfs    defaults    0 0
  • Mount
sudo mount -a