Linux下实现nfs共享的方法

admin   ·   发表于 4个月前   ·   linux

1、服务器端需要安装rpcbind 和 nfs-utils (一般已经安装)

可以通过rpm -q rpcbind   和 rpm -q nfs-utils来进行检查

2、创建一个目录,假设是/share/nfs

3、修改/etc/exports 加入 /share/nfs *(rw)   其中*号代表所有,也可以改成ip ,括号里面是权限

4、使用chmod修改/share/nfs的权限  chmod o+w /share/nfs

5、使用systemctl restart rpcbind

            systemctl restart nfs 重启服务

 

 

然后到客户端,使用mount.nfs命令挂载

1、建立一个目录 例如:nfsshare

2、mount.nfs ip:/share/nfs /nfsshare

3、可以顺利访问了。

0 条回复   |  直到 4个月前 | 77 次浏览
登录后才可发表内容