#安装依赖
yum install nfs-utils -y
#查看nfs共享文件夹
showmount -e 10.10.10.12
#创建本地目录
mkdir /www/linux_backup
#挂载
mount -t nfs 10.10.10.12:/volume1/linux_backup /www/linux_backup -o proto=tcp -o nolock
#加入开机启动
echo "mount -t nfs 10.10.10.12:/volume1/linux_backup /www/linux_backup -o proto=tcp -o nolock" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
Last modification:April 12, 2022
© Allow specification reprint