当前位置:网站首页>NFS共享服务及实验
NFS共享服务及实验
2022-07-24 05:23:00 【行走DI五花】
目录
一、NFS概念
NFS是一种基于TCP/IP传输的网络文件系统协议。通过使用NFS协议,客户机可以像访问本地目录一样访问远程服务器中的共享资源
对于大多数负载均衡群集来说,使用NFS协议来共享数据存储是比较常见的做法,NFS也是NAS存储设备必然支持的一种协议。但是由于NFS没有用户认证机制,而且数据在网络上明文传输,所以安全性很差,一般只能在局域网中使用。
NFS服务的实现依赖于RPC (Remote Process Call,远端过程调用)机制,以完成远程到本地的映射过程。所有需要安装nfs-utils、rpcbind 软件包来提供―NFS共享服务
二、NFS共享服务实验
一、NFS的作用

/dev/sdb1、/dev/sdb2、/dev/sdb2是本地磁盘挂在。NFS相当于跨网络挂载,①节省本地存储空间将常用的数据存放在一台服务器可以通过网络访问;②当硬盘存储压力过大时,会影响到本机的性能,NFS就不会出现在这样的问题。
二、实验步骤
Ⅰ:NFS服务器配置
1、搭建实验环境
安装/更新 nfs-utils、rpcbind软件包

2、 建立共享目录
在NFS服务器上建立共享目录 /opt/nfs_data
给与共享目录一个权限

3、修改NFS的配置文件
配置文件位置:/etc/exports
文件配置如下:

4、启动
先启动 rpcbind 再启动nfs(主机名有所改动,为一台主机)


5、查看本机发布的NFS共享目录
showmount -e

Ⅱ: 客户端配置
1、安装/更新 nfs-utils、rpcbind软件包

2、创建一个挂载点
![]()
Ⅲ:挂载
临时挂载

永久挂载

mount -a

Ⅳ:验证
在客户端创建一个文件

查看服务端

边栏推荐
猜你喜欢

Homework in the second week

进程和计划任务管理

MySQL from basic to entry to high availability
![Configure a fixed remote desktop address [intranet penetration, no need for public IP]](/img/17/4e119be86189d80b100eb000254a86.png)
Configure a fixed remote desktop address [intranet penetration, no need for public IP]

Leetcode sword finger offer jz25 merges two sorted linked lists

Set up a WordPress personal blog locally and launch it through the intranet (22)

go语言常用命令和包管理

Use and principle of spark broadcast variable and accumulator

Top 10 vulnerability assessment and penetration testing tools

leetcode剑指offer JZ25 合并两个排序的链表
随机推荐
leetcode 不用加减乘除算加法 || 二进制中1的个数
【214】什么是自动化框架
常用工作方法总结(7S、SWOT分析、PDCA循环、SMART原则、6W2H、时间管理、WBS、二八原则)
rsync(一):基本命令和用法
Remember to get the password of college student account once, from scratch
MySQL从基础到入门到高可用
Flink function (1): rich function
IP notes (9)
微信TBS在线安装内核失败的解决方法
[award issuance] the results of the first essay solicitation activity in oneos zone were announced
LuckyFrameWeb测试平台(一款支持接口自动化、WEB UI自动化、APP自动化,并且支持分布式测试的全纬度免费开源测试平台)
leetcode剑指offer JZ25 合并两个排序的链表
Work summary of a test Manager / Test Supervisor / test director
Wasm vs EVM, Boca's choice predicts the future of the public chain
Flink restart policy
[218] what are the advantages and disadvantages of CS architecture and BS architecture and data on the server and client?
Metersphere one stop open source continuous testing platform
力扣986.区间列表的交集
XML parsing
Simple three-step fast intranet penetration
