nfs实验步骤

发布时间 2023-03-24 15:19:02作者: 水树奈奈1

1.yum install -y nfs-utils
查看是否安装nfs
2.vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
编辑ip地址网关信息
image

3.systemctl restart network
重启网卡
image

4.ping www.baidu.com
Ping通网络
image

5.yum install -y nfs-utils
安装软件包
6.systemctl start nfs
停止nfs服务
7.mkdir mp3、mkdir video、mkdir cloud
新建mp3、video、cloud文件包
image

8.Vim /etc/exports
编辑vim编辑器 /root/mp3 192.168.92.0(ro)
/root/video 192.168.92.0(ro)
/root/cloud 192.168.92.0(ro)
image

9.systemctl restart nfs
重新启动nfs服务
image

10.exportfs -rv
查看nfs服务器实现目录共享情况
image
image