当前位置:网站首页>NFS shared storage service
NFS shared storage service
2022-07-22 17:28:00 【Jijijijijijijiji】
Catalog
Two 、NFS Service dependent packages
1、 install nfs-utils、rpcbind software package
3、 start-up rpcbind and nfs service
start-up rpcbind、nfs service , Set to boot
Check out the nfs share directory
One 、NFS Service concept
NFS It's based on TCP/IP Transmitted network file system protocol . By using NFS agreement , The client can access the shared resources in the remote server as if it were a local directory .
For most load balanced clusters , Use NFS Protocol to share data storage is a common practice ,NFS It's also NAS A protocol that storage devices must support . But because of NFS There is no user authentication mechanism , And the data is transmitted in clear text on the network , So the security is very poor , Generally, it can only be used in LAN .
Two 、NFS Service dependent packages
NFS The implementation of a service depends on RPC(Remote Process Call, Remote procedure call ) Mechanism , Mapping to the local process . So you need to install nfs-utils、rpcbind Software package to provide NFS Contributing services , Former used NFS Share publishing and access , The latter is used RPC Support .
3、 ... and 、NFS To configure
NFS The configuration file is /etc/exports
The format is :
Shared directory location Client address ( Permission options )
1、 install nfs-utils、rpcbind software package
2、 Set up shared directory
Create a shared directory , Give permission to share directories
Shared directory location Client address ( Permission options )
The client address can be the host name 、IP Address 、 Segment address , Allow to use "*“、”?" wildcard .
rw Allow reading and writing ,ro Represents read-only
sync: Write to memory and hard disk synchronously
no_root_squash: Indicates that the client is represented by root Identity access is given to local people root jurisdiction ( The default is root_squash)
root_squash: Indicates that the client uses root When users access the shared directory , take root Users are mapped to anonymous users
3、 start-up rpcbind and nfs service
start-up rpcbind、nfs service , Set to boot
Check whether the port is on
Check out the nfs share directory
Four 、 verification
Open another host to check 140 Shared directory of address
Create a directory for the shared directory to mount
mount
stay data Create files in directory , Verify whether
Generate files in the shared directory
边栏推荐
- LCD笔记(3)写出LCD基本驱动框架
- What if only the mouse displays when win11 is turned on?
- mysql约束之_唯一约束
- 稀疏数组(sparse)
- Recommendation of selected topics for completed topics of Electronic Information Engineering
- Breadth first search
- 服務器buffer/cache 的產生原因和釋放buffer/cache
- [reprint] UE4 interview Basics (I)
- 分支语句和循环语句
- mysql约束之_自增长约束_auto_increment
猜你喜欢
分支语句和循环语句
Take it. The strongest "high concurrency" system design 46 consecutive questions, killing a crowd of interviewers every minute
Angr principle and Practice (I) -- principle
Distributed computing framework map/reduce
【图文并茂】在线一键重装win7系统详细教程
NFS共享存储服务
Share our first otherside trip
What if only the mouse displays when win11 is turned on?
Server network performance tuning tool
Best practices of JD cloud Distributed Link Tracking in financial scenarios
随机推荐
UE4 面试基础知识(三)
重装Win11系统如何在线一键进行?
Playbook 介绍
服务器buffer/cache 的产生原因和释放buffer/cache
NFS网络文件系统
mysql约束之_自增长约束_auto_increment
matlab混频器的实现
Information security CISP certification - what are your concerns?
STL resize容量规律集合
深度解决npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
报表设计工具FastReport Online Designer V2022.1新改变全介绍
@The difference between resource and @autowired
【矩阵乘法】外部矩阵乘法
PostgreSQL判断是否为空coalesce
马斯克“变脸”﹕Q2出售75%BTC 套现近10亿美元
How to implement Apache's built-in AB stress testing tool
STL map
【C】分支和循环语句
The difference between final, finally and finalize
js 判断链接图片是否存在