客户端mount:
mount -o soft,timeo=1, -t nfs 10.10.28.199:/opt/package /data/opt/package
服务端配置:
vim /etc/exports
/opt/package 10.10.*.*/16(rw,sync,no_root_squash) 读写权限
/opt/package 10.10.0.0/16(ro,sync,no_root_squash) 只读权限
客户端域名配置:
mount -o soft,timeo=2, -t nfs deploy:/opt/package /data/opt/package
如何安装nfs
yum install -y nfs*
yum install -y rpcbind
开机启动:
systemctl enable nfs-server.service