Linux中的scp 如何使用

阅读 7

2024-09-10

安装

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)

0 0 举报