NFS共享
一、服务端
1.服务端安装nfs-utils、rcpbind软件包
yum -y install nfs-utils rpcbind
2.设置开机并启动
for i in rpcbind nfs;do systemctl enable $i --now; done
3.服务端设置共享目录
mkdir /data/backup/jcms
4.nfs配置共享位置的配置文件
vi /etc/exports
/data/backup/jcms 76.16.16.0/24(rw,sync,no_root_squash,no_all_squash,sync)
5.查看本机共享目录
showmount -e 76.16.16.206
二、客户端
1.客户端安装nfs-utils、rcpbind
yum -y install nfs-utils rpcbind
2.查看本机共享目录
showmount -e 76.16.16.206
3.客户端挂载
mount --bind /data/backup/jcms /data/backup/jcms -o proto=tcp -o nolock
4.添加开机启动
vim /etc/rc.log
mount --bind /data/backup/jcms /data/backup/jcms -o proto=tcp -o nolock
标签:backup,utils,nfs,jcms,NFS,共享,data
From: https://www.cnblogs.com/lzexin/p/17844933.html