nfs安装配置

记录一下nfs的安装配置以备忘

环境

server

CentOS Linux release 7.3.1611

client

CentOS Linux release 7.2.1511

Server

安装

1
yum install -y nfs-utils rpcbind

修改配置文件/etc/expots

1
/opt/tmp *(rw,sync)

启动nfs server端

1
2
sudo systemctl start rpcbind
sudo systemctl start nfs

Client

1
2
mkdir tmp
sudo mount -t nfs 10.123.4.215:/opt/tmp tmp