In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install nfs on Linux server". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install nfs on Linux server.
Install nfs
NFS is the abbreviation of Network File System, that is, the network file system. The client mounts the data directory shared by the NFS server to the local directory.
Because there are many functions supported by NFS, different functions will be started by different programs, so the port corresponding to the function of NFS can not be fixed. Irregular ports cause communication barriers between the client and the server, so RPC is needed to help. When NFS starts, it will randomly access several ports, and then actively register with the RPC service to access the relevant port and function information. RPC uses fixed port 111to listen for requests from the NFS client and return the correct NFS service port information to the client, so that the client and the server can carry out data transmission.
1. Nfs workflow
1) the program initiates the request for file access in the NFS client, and the local RPC (rpcbind) service on the client side sends the request for file access function to the RPC port 111of the NFS server through the network.
2) the RPC of the NFS server finds the corresponding registered NFS port and notifies the client of the RPC service.
3) the client gets the correct port and accesses the data online with NFS daemon.
4) after successfully accessing the data, return to the front-end access program to complete an access operation.
So whether the client or server needs to use NFS, the RPC service must be installed. The RPC service of NFS is named rpcbind under portmap,Centos6 under Centos5.
2. Install nfs
The nfs service has been successfully installed by default. If it is not installed, you can use yum to install it
1) query whether nfs is installed
[root@localhost ~] # rpm-qa | grep nfs
Nfs-utils-lib-1.1.5-6.el6.i686
Nfs4-acl-tools-0.3.3-6.el6.i686
Nfs-utils-1.2.3-39.el6.i686
2) query whether rpcbind is installed
[root@localhost ~] # rpm-qa | grep rpcbind
Rpcbind-0.2.0-11.el6.i686
3. Modify the firewall to open port 111of tcp
[root@localhost ~] # gedit / etc/sysconfig/iptables / / Firewall adds 111Port
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 111j ACCEPT
[root@localhost wj] # service iptables restart / / restart the firewall
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
4. Start the nfs service
[root@localhost ~] # service nfs start / / start the service
Start the NFS service: [OK]
Turn off NFS quota: [OK]
Start NFS mountd: [OK]
Start the NFS daemon: [OK]
Starting RPC idmapd: [OK]
You have new mail in / var/spool/mail/root
[root@localhost ~] #
At this point, I believe you have a deeper understanding of "how to install nfs on the Linux server". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow 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.