- server端
安装
yum install -y nfs-utils
修改配置文件
vim /etc/exports
/home/share/ 192.168.1.0/24(rw,sync,fsid=0)
#/home/share/ 192.168.1.1(rw,sync,fsid=0) 192.168.1.2(rw,sync,fsid=0)
测试
exportfs -v
exportfs: /etc/exports:1: syntax error: bad option list
出现上述错误,一般为格式不正确,中英文、空格等 请自行