欢迎来到程序员中文网!

首页 Linux Mysql C++ Python PHP JavaScript 资源下载 动态 开源推荐
我要投稿 投诉建议

NFS 网络文件系统

时间:2026年08月12日 05:16:04 浏览:1

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 等)。