1. Install nfs-common on all nodes

$ apt install -y nfs-common

2.Master node deployment NFS-Server

  1. Install nsf server

    $ apt install -y nfs-kernel-server
  2. Create a shared directory

    $ mkdir -p /data/nfsdata
  3. Authorize shared directories

    $ chmod -R 777 /data/nfsdata
  4. Modify the esports file

    $ cat /etc/exports
    /data/nfsdata *(rw,no_root_squash,no_all_squash,sync)
  5. Start

    $ /etc/init.d/nfs-kernel-server start
  6. Configure self-start after booting

    $ systemctl enable nfs-kernel-server
Likes(1)

Comment list count 0 Comments

No Comments