【服务器】
[student@server0 ~]$ sudo -i
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for student:
[root@server0 ~]# systemctl start nfs-server
[root@server0 ~]# systemctl start nfs-server ; systemctl enable nfs-server
ln -s '/usr/lib/systemd/system/nfs-server.service' '/etc/systemd/system/nfs.target.wants/nfs-server.service'
[root@server0 ~]# mkdir /nfsshare
[root@server0 ~]# chown nfsnobody /nfsshare
[root@server0 ~]# echo '/nfsshare desktop0(rw)' >> /etc/exports
[root@server0 ~]# exportfs -r
[root@server0 ~]# firewall-cmd --permanent --add-service=nfs
success
[root@server0 ~]# firewall-cmd --reload
success