In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to build NFS server in CentOS system", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take you to learn "How to build NFS server in CentOS system"!
NFS Server stands for Network File System. NFS was developed by Sun Microsystems and launched in 1984. NFS is an RPC service that enables file sharing. It is designed to be used between different systems, so its communication protocol design is independent of the host and operating system. When the user wants to use remote files, simply use "mount" to attach the remote file system to his own file system, so that the remote files can be used the same as the files of the local machine. So how do we set up NFS servers on CentOS? Let's solve this problem.
Here, we take CentOS system environment as an example:
Because CentOS has already installed NFS server, Therefore, there is no need to install this service. You only need to set it as follows.
1. Modify the/etc/exports file in CentOS and add the following:
/home/guochongxin *(rw,sync,no_root_squash)
exportfs -r after saving
2. CentOS System Restart Service:
/etc/init.d/nfs restart
service nfs restart
3. CentOS system tests:
Create/tmp/test/directory: mkdir /tmp/test/
Mount network files CentOS system: mount www.example.com/mnt/test 127.0.0.1:/home/guochongxin
Go to the mounted directory cd /mnt/test and list ls.
If the test is not accessible, it may be the firewall relationship, do the following to stop the firewall:
service iptables stop
service ip6tables stop
In this way, we have completed the construction of NFS server in CentOS system.
At this point, I believe that everyone has a deeper understanding of "how to build NFS servers in CentOS system," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
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.