Centos7安装NFS方法

2025-04-20 12:14:49

1、使用yum进行安装yuminstall-ynfs-utilsnfs-utils-lib

Centos7安装NFS方法

2、编辑配置文件vim/etc/exports/public 192.168.1.0/24(rw.sync)

Centos7安装NFS方法

3、安装顺序启动服务[root@localhost ~]# systemctl restart rpcbind[root@local茑霁酌绡host ~]# systemctl restart nfs-server[root@localhost ~]# systemctl restart nfs-lock[root@localhost ~]# systemctl restart nfs-ldmap

Centos7安装NFS方法

4、关闭selinuxsetenforce 0

Centos7安装NFS方法

5、配置防火墙//开启rpc的tcp端口firewall-cmd --permanent --a蟠校盯昂dd-port租涫疼迟=111/tcp//开启nfs的tcp端口firewall-cmd --permanent --add-port=2049/tcp//开启nfs服务firewall-cmd --permanent --zone=public --add-service=nfs//重新加载firewall-cmd --reload

Centos7安装NFS方法

6、本机进行挂载测试

Centos7安装NFS方法
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢