NFS : Configure NFS Server2023/02/22 |
Configure NFS Server to share directories on your Network.
This example is based on the environment like follows. +----------------------+ | +----------------------+ | [ NFS Server ] |10.0.0.30 | 10.0.0.51| [ NFS Client ] | | dlp.srv.world +----------+----------+ node01.srv.world | | | | | +----------------------+ +----------------------+ |
[1] | Configure NFS Server. |
[root@dlp ~]#
dnf -y install nfs-utils
[root@dlp ~]#
vi /etc/idmapd.conf # line 5 : uncomment and change to your domain name Domain = srv.world
[root@dlp ~]#
vi /etc/exports # create new # for example, set [/home/nfsshare] as NFS share /home/nfsshare 10.0.0.0/24(rw,no_root_squash)
mkdir /home/nfsshare [root@dlp ~]# systemctl enable --now rpcbind nfs-server |
[2] | If Firewalld is running, allow NFS service. |
[root@dlp ~]#
firewall-cmd --add-service=nfs success # if use NFSv3, allow follows, too [root@dlp ~]# firewall-cmd --add-service={nfs3,mountd,rpc-bind} success firewall-cmd --runtime-to-permanent success |
For basic options of exports
|
Sponsored Link |
|