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

扫描二维码关注公众号,回复: 7389965 查看本文章

[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

猜你喜欢

转载自www.cnblogs.com/123456likun/p/11606921.html