0
点赞
收藏
分享

微信扫一扫

Linux中的scp 如何使用

googlefrank 2024-09-10 阅读 7

安装

yum install -y autofs

准备挂接目录

mkdir /nfsdata
mkdir /nfsdata/{tools,files}

添加配置

echo “/nfsdata /etc/auto.user” >> /etc/auto.master
echo “tools -fstype=nfs,rw,sync,no_root_squash 172.23.0.187:/mnt/sdb1/tools” >> /etc/auto.user
echo “files -fstype=nfs,rw,sync,no_root_squash 172.23.0.164:/nfsData” >> /etc/auto.user

启动服务

systemctl start autofs
systemctl enable autofs

举报

相关推荐

0 条评论