美文网首页
linux 安装 nfs

linux 安装 nfs

作者: SlowGO | 来源:发表于2018-12-13 11:53 被阅读1次

ubuntu

安装 nfs 服务:

apt install nfs-common

修改配置文件:

vim /etc/exports

// 添加:
/home *(rw,sync,no_root_squash)

重启nfs服务:

/etc/init.d/nfs-kernel-server restart

查看服务端的共享目录:

showmount -e [nfs server ip]

// 返回
Export list for localhost:
/home    *

挂载到本地目录:

mount -t nfs [nfs server ip]:/home  /mnt 

centos

安装:

yum -y install nfs-utils rpcbind

配置:

vi /etc/exports

# 添加:
/nfsdata          *(rw,no_root_squash,sync)

启动服务:

service rpcbind start

service nfs start

查看:

showmount -e

相关文章

网友评论

      本文标题:linux 安装 nfs

      本文链接:https://www.haomeiwen.com/subject/dxvvhqtx.html