Welcome To iris's Blog

路漫漫其修远兮,吾将上下而求索。
扩大
缩小
……

centos6.5单机配置NFS

操作系统:centos6.5

服务端、客户端:26.129

1、安装rpcbind和nfs-utils

可以用以下命令查看系统是否已经安装
rpm -qa|grep rpcbind
rpm -qa|grep nfs

2、设置共享目录

打开/etc/exports设置
[root@bogon scripts]# cat /etc/exports
/sharestore *(rw,sync,no_root_squash)
/home/informix/scripts *(rw,sync,no_root_squash)

3、重启服务器

service rpcbind restart
service nfs-utils restart
image

4、在客户端挂载

客户端也需要安装rpcbind 和 nfs-utils, 启动这两个服务
mount -t nfs 10.10.14.52:/mnt/share /mnt

posted @ 2021-06-09 17:05  a长  阅读(48)  评论(0编辑  收藏  举报