NFS搭建
安装必要软件
yum -y install nfs-utils rpcbind
配置共享目录
[root@localhost bin]# cat /etc/exports
/mnt/docker/nfs_data_folder/storage 10.4.53.33(rw,no_root_squash,no_all_squash,sync)
/mnt/docker/nfs_data_folder/storage_bussiness 10.4.53.33(rw,no_root_squash,no_all_squash,sync)
启动服务
systemctl start nfs-server
使用命令让配置生效
exportfs -r
检查生效结果
showmount -e 127.0.0.1
参考内容:
https://blog.csdn.net/qq_34028816/article/details/109566061