当前位置:网站首页>NFS introduction and configuration
NFS introduction and configuration
2022-07-27 06:42:00 【Thousand tears 1999】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
One 、 What is? NFS
NFS(Network File System) Network file system , yes FreeBSD One of the supported file systems , It allows computers in the network to pass through TCP/IP Network sharing resources . stay NFS The application of , Local NFS The client application can read and write transparently at the remote end NFS Files on the server , It's like accessing a local file .
Network file system , english Network File System(NFS), By SUN Developed by the company UNIX Presentation layer protocol (presentation layer protocol), Enables users to access files elsewhere on the network as if they were using their own computer .
NFS Is based on UDP/IP Application of protocol , Its implementation mainly uses remote procedure call RPC Mechanism ,RPC Provides a set of 、 Operating system and lptp independent access to remote files .RPC Adopted XDR Support for .XDR It's a machine independent data description coding protocol , He encodes and decodes data transmitted over the Internet in a stand-alone and arbitrary machine architecture format , Support data transmission between heterogeneous systems .
Its main function is to share files and directories between different machine systems through the network .NFS The server can allow NFS The client will be remote NFS The shared directory on the server side is mounted to the local directory NFS The client . At the local NFS The client machine looks like ,NFS The shared directory on the server side is like its own disk partition and directory . Generally, the name of the client attached to the local directory can be arbitrary , But for the convenience of Management , We want to be as good as the server side . It is equivalent to windows Share files inside , Then other hosts map the shared file to a local disk, using the same .
NFS It is generally used to store shared video , Static data such as pictures .
Two 、NFS working principle
NFS The server can make PC The NFS The directory shared by the server is mounted to the local file system , And in the local system , The directory of the remote host is like a partition of its own , It's quite convenient to use .
3、 ... and 、nfs System composition of
nfs The system has at least two main parts :
a nfs The server ( Including one NFS master server , A standby server , In case of hang up )
Several clients
The client passes through TCP/IP Network remote access exists NFS Data on the server
stay NFS Before the server is officially enabled , According to the actual environment and needs , Configure some parameters
Four 、NFS Configuration of
1. install nfs-utils、rpcbind software package 
2. Create a shared directory and give 777 jurisdiction 
3. edit nfs Configuration file for
Shared directory location Client address ( Permission options )

4. start-up rpcbind、nfs service , Set to boot , Be careful to turn on rpcbind After opening nfs. Restart after modifying the configuration file 
5. Check whether the port is on 
6. Check out the nfs share directory 
5、 ... and 、 verification
1. Open another host to query the shared directory , The address is server ip
2. Create a directory , Used to mount shared directories 
3. Mount the shared directory on qian Under the table of contents 
4. Permanently mount 
5. stay qian Create a file under the directory and write text 
6. Back to the server , View under the shared directory , You can see the files created by the client 
边栏推荐
猜你喜欢
随机推荐
Database commands
装饰器函数与类装饰器的使用
Shell programming specification and redirection and pipeline operation
Use of getattr, hasattr, delattr and setattr in reflectors
Geonode GeoServer win10 installation tutorial (personal test)
Programming learning records - Lesson 7 [functions]
Basic knowledge of English: Rules for using attributives Part 2
Array and subscript index
DNS域名解析服务
基于Apache下ab工具进行网站压力性能测试
Go语言学习
PXE efficient batch network installation
pymysql查询查询结果转换json
Shell脚本一键配置LAMP
网络故障排查:用户VLAN下用户无法收到组播报文故障(IGMP Snooping)
Path to file
C language -- string operation function and memory operation function
Stress performance test of website based on AB tool under Apache
Source code compilation and installation LNMP and discuz Forum
Basic operation of database on terminal









