NFS shared storage service

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

 

Guess you like

Origin www.cnblogs.com/123456likun/p/11606921.html