# 安裝需要的套件 yum install nfs-utils rpcbind nfs-utils-lib # 預設啟用必需的服務 systemctl enable rpcbind systemctl enable nfs systemctl enable nfslock # 立即啟用服務 systemctl start rpcbind systemctl start nfs systemctl start nfslock
/tmp 192.168.100.0/24(rw,sync,no_root_squash) localhost(rw) *.ev.ncku.edu.tw(ro,sync)
exportfs -a systemctl restart nfs
mount -t nfs 192.168.100.1:/tmp /mnt/tmp
192.168.100.1:/tmp /mnt/tmp nfs rw 0 0