Centos 7搭建NFS服务(linux和windows)

NFS服务搭建(linux和windows)
windows192.168.110.146
centos7192.168.110.165
1.centos7配置下载 nfs和rpcbind服务

yum install -y nfs-utils rpcbind

编辑配置文件

vim /etc/exports

在这里插入图片描述
添加共享主机ip 我这里选择添加整个网段

/home/nfstestdir 192.168.110.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)

在这里插入图片描述
之后创建共享目录

mkdir /home/nfstestdir

然后开启nfs和rpcbind服务

systemctl restart nfs
systemctl restart rpcbind

防火墙关闭

systemctl stop firewalld
setenforce 0

windows配置
点开控制面板
Centos 7搭建NFS服务(linux和windows)_第1张图片
点开程序
在这里插入图片描述
点击打开或关闭windows功能
在这里插入图片描述
开启NFS服务 点击确定等一会就好了
Centos 7搭建NFS服务(linux和windows)_第2张图片
win+R 输入cmd敲回车
在这里插入图片描述
这样就连接完成了
Centos 7搭建NFS服务(linux和windows)_第3张图片
在共享目录上传病毒
使用D盾扫描看是否可以扫描出病毒
Centos 7搭建NFS服务(linux和windows)_第4张图片
这里就成功了

你可能感兴趣的:(基础服务搭建)