手动搭建nfs服务器

本文档详述了如何手动设置NFS服务器,包括准备两台服务器作为客户端和服务端,安装NFS软件,在服务端开放/nfs/shared目录,检查端口号,并在客户端成功挂载NFS共享目录。
摘要由CSDN通过智能技术生成
1.准备两台服务器,一台客户端,一台服务端
[root@afei ~]# hostnamectl set-hostname client
[root@afei ~]# bash
[root@client ~]# 
[root@clocalhost ~]# hostnamectl set-hostname server
[root@client ~]# bash
[root@server ~]# 
2.两台主机安装NFS
[root@client ~]# yum -y install nfs-utils
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository AppStream is listed more than once in the configuration
Repository BaseOS is listed more than once in the configuration
Repository AppStream is listed more than once in the configuration
Warning: failed loading '/etc/yum.repos.d/local.repo', skipping.
baseos                                                                                               2.7 MB/s | 2.8 kB     00:00    
aliyun                                                                                                11 kB/s | 4.7 kB     00
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值