Centos7安装NFS方法

 时间:2026-04-22 19:37:41

1、使用yum进行安装

yum install -y nfs-utils nfs-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@localhost ~]# systemctl restart nfs-server

[root@localhost ~]# systemctl restart nfs-lock

[root@localhost ~]# systemctl restart nfs-ldmap

Centos7安装NFS方法

4、关闭selinux

setenforce 0

Centos7安装NFS方法

5、配置防火墙

//开启rpc的tcp端口

firewall-cmd --permanent --add-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方法

  • 使用Ghost2003在Windows系统中备份系统
  • 惠普电脑,Windows7,如何删除系统还原点
  • win10任务栏上的人脉图标不见了怎么办?
  • 如何使用U盘加快系统速度(Readyboost)
  • Win10如何查看自己系统的激活码
  • 热门搜索
    高铁旅游线路 去哪里旅游便宜又好玩 贡嘎山旅游攻略 杭州海外旅游有限公司 三月底适合去哪里旅游 海口旅游必去景点 澳大利亚墨尔本旅游 合肥市旅游局 内蒙古旅游景点地图 杭州黄龙旅游集散中心