NFS 共享存储服务

一,安装nfs-utils rpcbind 软件包 后启动

 

[root@localhost ~]# yum -y install nfs-utils rpcbind

 

[root@localhost ~]# systemctl enable rpcbind

 

[root@localhost ~]# systemctl enable nfs

 

二,设置共享目录

 

[root@localhost ~]# mkdir -p /opt/wwwroot

 

[root@localhost ~]# vim /etc/exports

 

/opt/wwwroot 192.168.200.0/24(rw,sync,no_root_squash)

三,启动NFS 服务程序

 

[root@localhost ~]# systemctl start rpcbind

 

[root@localhost ~]# systemctl start nfs

 

 

 

四,查看本机NFS 共享目录

showmount -e

 

posted @ 2019-09-29 14:19  Supernova-L李  阅读(132)  评论(0)    收藏  举报