First, install nfs-utils rpcbind after the package starts
[root@localhost ~]# yum -y install nfs-utils rpcbind
[root@localhost ~]# systemctl enable rpcbind
[root@localhost ~]# systemctl enable nfs
Second, set the shared directory
[root@localhost ~]# mkdir -p /opt/wwwroot
[root@localhost ~]# vim /etc/exports
/opt/wwwroot 192.168.200.0/24(rw,sync,no_root_squash)
Third, start the NFS service program
[root@localhost ~]# systemctl start rpcbind
[root@localhost ~]# systemctl start nfs
Fourth, check your phone NFS shared directory
showmount -e