当前位置:网站首页>Network file system service (NFS)
Network file system service (NFS)
2022-07-28 10:49:00 【[email protected]】
One 、NFS The basic principle
Network file system is to make Different computers Can pass between The Internet Conduct File sharing A network protocol , be chiefly used in UNIX In the network of the system .NFS The service is only used for (Linux System ) Between File sharing .
Two 、NFS working principle
NFS Service is based on The client / The server Mode .NFS Server is Provide output file ( Shared directory file ) The computer , and NFS The client is Access the output file The computer , It can mount the output file to a directory file in its own system .
NFS The customer and NFS Server pass Remote procedure call protocol Realization The data transfer .NFS If the directory on the server can be accessed by remote users , It's called export (export); The process of the client host accessing the server export directory is called mount (mount) Or import .
3、 ... and 、NFS Components
NFS Services are mainly provided by 6 Component composition . front 3 Required , after 3 Options .
1、rpc.nfsd : Judge 、 Check whether the client has the permission to log in to the host , Responsible for handling NFS request
2、rpc.mounted : management NFS File system
3、rpcbind : Conduct Port mapping Work
4、rpc.locked: Handle lock recovery of crashed systems
5、rpc.stated: Handle the file locking problem between the client and the server
6、rpc.quotad: Provide NFS Interface with quota management program .
Four 、 install 、 Start and stop NFS The server
1、 The kit you need
At least two kits are required
(1)rpcbind
(2)nfs-utils
nfs-utils Provide rpc.nfsd and rpc.mounted These two daemons and other related documents 、 Suite of execution files .
2、 install NFS service
Check whether the system is installed NFS Dependency packages
rpm -qa|grep nfs-utils
rpm -qa|grep rpcbind
(1) Use yum Command to install NFS service
yum clean all // Clear the cache before installing
yum install rpcbind -y
yum install nfs-utils -y
(2) Use rpm Command to query again
rpm -qa|grep nfs
Query results :
libnfsidmap…
nfs-utils…
rpm -qa|grep rpc
Query results :
libtirpc…
xmlrpc…
rpcbind…
xmlrpc-c-client…
3、 start-up NFS service
Inquire about NFS Whether the program of is running normally
rpcinfo -p
If you don't see nfs and mounted Options , shows NFS Not running , Need to start it . Start with the following command .
systemctl start rpcbind
systemctl start nfs
systemctl start nfs-server
systemctl enable nfs-server
systemctl enable rpcbind
5、 ... and 、 To configure NFS service
Primary profile :/etc/exports
1、 Virtual machine required
a NFS The server , The host name is Server1, Plan well IP Address: e.g :192.168.10.1
a NFS client , The host name is Client1, Plan well IP Address: e.g :192.168.10.20
NFS The network connection mode of server and client is VMnet1
2、exports File format
If there is no /etc/exports, Then create it manually .
mkdir /tmp1
vim /etc/exports
/tmp1 192.168.10.20/24(ro) localhost(rw) *(ro,sync)
# share directory The first mainframe ( jurisdiction ) Available host names Other hosts ( Wildcards available )
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207281025239318.html
边栏推荐
- 粒子群实现最优解的求解
- Yan reports an error: exception message: /bin/bash: line 0: fg: no job control
- C语言 输入带空格的字符串
- Invalid ROM Table原因及解决办法
- Redis-day01-常识补充及redis介绍
- Implement a queue with two stacks [C language]
- 网络文件系统服务(NFS)
- GKRandomSource
- Install Office customization. Troubleshooting during installation
- Attention 注意力机制流程框图
猜你喜欢

GKVoronoiNoiseSource

蓝桥杯嵌入式-HAL库-USART_RX
c语言进阶篇:指针(一)

Qt生成.exe文件 并 在无Qt环境下运行(Enigma Virtual Box进行绿色可执行软件封装)图文教程

Characteristics and installation of non relational database mongodb

6、MapReduce自定义分区实现

Pyqt5 rapid development and practice 4.13 menu bar, toolbar and status bar and 4.14 qprinter

机器学习--手写英文字母2--导入与处理数据

Machine learning -- handwritten English alphabet 1 -- classification process

5. Implement MapReduce program on window side to complete wordcount function
随机推荐
GKNoiseMap
Implement a queue with two stacks [C language]
8. Detailed explanation of yarn system architecture and principle
Inverse element & combinatorial number & fast power
20200229训练赛 L2 - 2 树种统计 (25分)
Pyqt5 rapid development and practice 4.13 menu bar, toolbar and status bar and 4.14 qprinter
PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter
10_ UE4 advanced_ Add fall and cast actions
试题 历届试题 发现环
10_ue4进阶_添加倒地和施法动作
ACM winter vacation training 4
判断数码管是共阳极还是共阴极
Powerful and unique! Yingzhong technology 2020 10th generation core unique product launch
Idea packages jar packages and runs jar package commands
Idea create my first project
20200229 training match L1 - 2 delete the substring in the string (20 points)
Attention attention mechanism flow chart
机器人技术(RoboCup 2D)如何进行一场球赛
SDUT Round 9 2020 Spring Festival campaign
Andorid 开发三 (Intent)