1. Install nfs-common on all nodes
$ apt install -y nfs-common
2.Master node deployment NFS-Server
-
Install nsf server
$ apt install -y nfs-kernel-server
-
Create a shared directory
$ mkdir -p /data/nfsdata
-
Authorize shared directories
$ chmod -R 777 /data/nfsdata
-
Modify the esports file
$ cat /etc/exports /data/nfsdata *(rw,no_root_squash,no_all_squash,sync)
-
Start
$ /etc/init.d/nfs-kernel-server start
-
Configure self-start after booting
$ systemctl enable nfs-kernel-server
Post comment 取消回复