Position: Home page » Computing » Is NFS decentralized

Is NFS decentralized

Publish: 2021-04-06 19:14:02
1.

NFS (network file system) is one of the file systems supported by FreeBSD. It allows computers in the network to share resources. In the application of NFS, the client application of local NFS can read and write files on the remote NFS server transparently, just like accessing local files

There are at least two main parts in

NFS system:

one NFS server and several clients

the client remotely accesses the data stored on the NFS server through TCP / IP network

before the NFS server is officially enabled, some NFS parameters need to be configured according to the actual environment and requirements

extended data:

NFS is an application based on UDP / IP protocol. Its implementation mainly adopts RPC mechanism of remote procere call. RPC provides a group of operations of accessing remote files that are independent of machine, operating system and low-level transport protocol

RPC is supported by XDR. XDR is a machine independent data description coding protocol. It encodes and decodes the data transmitted on the Internet in an independent and arbitrary machine architecture format, and supports the data transmission between heterogeneous systems

reference source: network network file system

reference source: network NFS

2. 1: Who is not shared in the same subnet? How to share
2: load balancing, rendancy and fault tolerance. How many of you need to do NFS in LAN? Hundreds of people are needed to visit. Rendant, fast< br />3; NFS can set permissions for users. Can you set permissions for a user when sharing on LAN? Can't we just treat each other equally
supplementary answer:
1: sorry, I made a mistake yesterday. It's not NFS. FTP
2: file sharing, mainly for Ethernet. File server is mainly for WAN or LAN of many companies
3: according to theoretical analysis, file sharing is a physical layer transmission, and protocol forwarding is not required. FTP is an application layer service, and files need to be forwarded by FTP protocol. This is certainly less efficient than direct transmission. So for our same subnet LAN sharing is faster than FTP. But if the next door is not in the same subnet with you, and you need his information, sharing is not feasible. If you use the router link as you say, it's better to it directly from the U disk. So let's deepen the problem a little bit. I'm in Wuhan, you're in Beijing. I need your information. Will you spend money to set up a router? Even if you can set it up, how can you set it up? FTP? Or VPN (if possible)? For a simple LAN, sharing is a better choice than FTP
4: compared with the simple LAN, the company's LAN is different from our students' dormitory LAN.. They have many departments. There are different VLANs. How to share data between users in one subnet and users in another subnet? I'm afraid it's not the way to use router or USB flash disk. So FTP, of course, is the choice
5: and the company's complex LAN has such problems. We students shared Warcraft, others like to or not, no matter who can . But in general, the company only needs to share information with a certain person in the same LAN. These information are financial information and do not need other people to know. Can I use share? NTFS permissions are not available. If you want to get to the top, then sharing can be done, using hidden sharing, but the permission setting and security policy configuration is a complex process. This kind of situation is often encountered in financial departments. So FTP is better. In this way, you should understand. Compared with sharing in LAN, the only function of FTP is security. You need speed or safety. That's the point of your choice. For WAN, sharing is definitely useless
the answer is not easy, I hope it can help you, please help me adopt it, thank you
!
3. Method / step log in to the server to be set as service for NFS, set the directory to be shared by NFS, enter VI / etc / exports on the command line, enter the file editing window of VI, press I to switch to editing mode, and enter the directory location and permissions you want to set, such as / var / ftp * (RW, no)_ root_ squash) Description: /
4. Methods / steps

log in to the server to be set as service for NFS

set the directory to be shared by NFS, enter VI / etc / exports on the command line, and then press enter to enter the file editing window of VI, press I to switch to editing mode, and enter the directory location and permissions you want to set, such as / var / ftp * (RW, no)_ root_ squash) Description / var / FTP is the shared directory location* rw,no_ root_ Square) * means any IP can be accessed, RW means read-write access, no_ root_ Square has the permissions of the directory owner

after confirming that the input is correct, press the ESC key to return to the VI command mode, press the (colon) WQ key in turn, and then press enter to save and exit editing

use the service nfs start command to start service for NFS (after making any changes to / etc / exports, you need to restart service for NFS to make the changes take effect, and restart the command service NFS restart)

so far, the settings on the server are complete
to start using the client settings of NFS service, you should first use putty to log in to the computer using NFS For convenience, I operate on the same computer)
create the directory where NFS is to be mounted (if the directory already exists, ignore this step). If I want to mount to the directory / var / FTP, I first create the directory with the command MKDIR / NFS / FTP, and then use the command LS / var - L to view

mount the NFS share, Use the mount - t NFS - O RW 192.168.109.130 / NFS / ftp / var / ftp command to mount
if you want to mount automatically every time you start the machine, you can use the command VI / etc / fstab to edit, add 192.168.109.130 / var / ftp / NFS / ftp NFS defaults 0 to the last page, save and exit. In this way, the NFS share 192.168.109.130 / var / ftp will be automatically mounted every time it is started.
5.

Do not worry, this tip is to tell you the missing file, you go to download and install it

msvcp110.dll is an important component to help the game run
is not found in the directory, you can go to the Internet to download, pay attention to download safety, scan hA

1, did not install vc2010, to search: vc2010, Just download and install it
the first one is dote. Remember to distinguish whether your system is 64 bit or 32-bit, 64 bit is x64, 32-bit is x86

2. Find the corresponding file and unzip it to C / Windows / system32 or the root directory of your game
for the program, try to run the game in compatibility mode and administrator permission. Operation: program → properties → compatibility → check the compatibility mode of running with administrator permission and using XP SP3 at the same time

3. You can also use Tencent computer manager to repair, open computer manager - Computer clinic - software problem - [missing DLL file] to repair

6. You go to the China racing game Association, which is looking for the top 8 underground storm, which has mod, and then you go to love to shoot original to see the top 8 mod installation tutorial!
7. Maybe the configuration is low, maybe the network speed of your home is not enough, or you restart and login again, or find someone to repair it
8. 1. Install NFS server and client

sudo apt get install NFS kernel server NFS common portmap

2. Configure portmap in either way (portmap in Ubuntu is replaced by rpcbind, this step is unnecessary)

(1) sudo VIM / etc / default / portmap remove - I 127.0.0.1

(2) sudo dpkg reconfiguration portmap select & quot; No & quot

3. Configure the mount directory and permissions

VIM / etc / exports

at the end, add / nfsroot * (RW, sync) # nfsroot as the root directory of the NFS server

* which can be replaced with the corresponding host name

for example, I want to share the / home / Lin / nfsshare directory in my home directory with 192.168.1, Add the following statement at the end of the file:
/ home / Lin / nfsshare 192.168.1. * (RW, sync, No_ root_ Square)

and then save to exit

/ home / Lin / nfsshare means shared directory. Of course, you can change it to your favorite directory

192.168.1. *: the first three digits are the IP address of your host (client for NFS)
RW: read / write permission. The parameter of read-only permission is ro
Sync: data can be written to memory and hard disk synchronously, or async can be used. At this time, data will be temporarily stored in memory instead of being written to hard disk immediately< br />
no_ root_ Square: the attribute of the shared directory user of the server for NFS. If the user is root, then the shared directory has root permission

4. Update the exports file

sudo exportfs - R

5. Restart rpcbind, NFS service

sudo / etc / init.d/rpcbind restart

sudo / etc / init.d/nfs-kernel-server restart

6. Go to the client to mount the shared directory of the NFS server

sudo mount - t NFS 192.168.10.62 / home / share / NFS

note: this command is executed on the client,

192.168.10.62 is the IP address of the NFS server, The following / home / share / NFS is the shared directory of the server,

the last / home / share / NFS is the shared directory of the client
9. Are you a vagrant under the stars? The next installation free hard disk version, complete, but also high pressure, a lot of resources, I am under that, no poison.
10. In fact, there are some places where short cuts are hard to get through... I can only watch. In fact, there are only a few maps of top grade 17. If you run too much, you will know where you can go and where you can't go.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750