Centos 7+配置nfs服务
nfs主机
step1:安装软件
yum -y install nfs-utils rpcbind
step2:配置/etc/exports
/data/zookeeper/log 11.0.183.24(ro,sync,no_root_squash) 11.0.183.21(ro,sync,no_root_squash)
step3: 启动nfs服务
systectl start nfs
step4:加载exports配置
exportfs -a
挂载主机
step1:软件安装
yum -y install nfs-utils rpcbind
挂载
mount -t nfs4 11.0.183.28:/data/zookeeper/log /mapingdisk/voter1