一、安装所需要的软件环境
[root@fengling ~]# yum -y install rpcbind nfs-utils
二、创建共享目录
mkdir /web
三、启动服务
[root@fengling ~]# systemctl start rpcbind
[root@fengling ~]# systemctl start nfs
四、将目录共享信息加入到配置文件
[root@fengling ~]# cat /etc/exports
/web 49.232.149.234(rw) #共享目录位置 哪个ip可以使用共享 拥有读写的权限
五、确保生效,重启服务
[root@fengling ~]# systemctl start rpcbind
[root@fengling ~]# systemctl start nfs
注:要先启动rpcbind服务 然后启动nfs

相关文章:

  • 2022-01-16
  • 2021-08-18
  • 2021-11-20
  • 2021-07-31
  • 2021-03-31
  • 2021-09-19
  • 2021-05-27
  • 2021-12-07
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2021-08-19
  • 2021-12-05
  • 2021-11-27
  • 2021-07-11
  • 2021-12-19
相关资源
相似解决方案