[root@localhost conf]# systemctl enable --now nfs-server
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /usr/lib/systemd/system/nfs-server.service.
[root@localhost conf]# mkdir -pv /var/nfsshare
mkdir: created directory '/var/nfsshare'
[root@localhost conf]# chown -R nobody:nobody /var/nfsshare/
[root@localhost conf]# echo '/var/nfsshare 10.0.1.0/24(rw,sync,root_squash)' >> /etc/exports
[root@localhost conf]# exportfs -r
[root@localhost conf]# systemctl restart nfs-server
[root@localhost conf]# systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Active: active (exited) since Tue 2023-07-04 23:49:06 EDT; 6s ago
Process: 33111 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 33109 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 33107 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 33134 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited, status=0/SUCCESS)
Process: 33123 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Process: 33121 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 33134 (code=exited, status=0/SUCCESS)
Jul 04 23:49:06 localhost.localdomain systemd[1]: Starting NFS server and services...
Jul 04 23:49:06 localhost.localdomain systemd[1]: Started NFS server and services.