In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Before we learn to configure NFS services, let's take a look at what NFS (Network File system) is.
NFS (Network File System), the network file system, is one of the file systems supported by FreeBSD, which allows computers in the network to share resources over the TCP/IP network. In the application of NFS, the client application of the local NFS can read and write files located on the remote NFS server transparently, just like accessing the local file.
Configuring the NFS service is actually very simple, with only a few steps!
Before you start, configure the IP address of the host to be used in the test to ensure that you can ping each other.
Nfs server configuration:
Yum install nfs-utils-y # server installs NFS service first
Mkdir / tang create a shared directory
Echo "tang" > / tang/ceshi writes a file for nfs clients to read
Vim / etc/exports enters the configuration file
/ tang 192.168.23.* (rw,sync,root_squash)
# rw read-write mode
# root_squash when the nfs client is accessed by the root user, it is mapped to the root user on the nfs server
# sync writes data to both memory and hard disk to ensure that data is not lost
Step 2: update the nfs service
Systemctl status rpcbind # check whether rpcbind allows
Systemctl start nfs-server # start the nfs service
Systemctl enable nfs-server # is set to enable startup
Iptables-F # clears iptables (failure to clear may cause the client to search for no server)
The next step is to configure the client, so let's test the linux client first.
Step 3: client testing
Linux client
Yum install nfs-utils
Showmount-e 192.168.23.10 # query the shared resources available in the remote NFS server
Mkdir / tang # create a local mount directory
Df # View disk partition occupancy
Then go to the / tang folder and find the file / ceshi that we created under the server / tang folder
The unmount command is: umount / tang
Windows 7 client test:
(open Control Panel-Select programs-Select programs and functions to turn windows on or off-check the NFS service)
Then turn on allow and select cmd to enter the console
Mount 192.168.23.10:/tang z: # is mapped to Z drive letter
Unmount command: umount Z:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.