NFS 网络文件系统
NFS 允许在网络上共享目录,常用于集群存储。
服务端配置:
# 安装 nfs-utils
yum install nfs-utils
# 编辑 /etc/exports
/share 192.168.1.0/24(rw,sync,no_root_squash)
# 启动服务
systemctl start nfs-server客户端挂载:
mount -t nfs server_ip:/share /mnt/nfs注意:需防火墙开放端口(2049 等)。
