In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to build NFS shared storage service in Redhat". In daily operation, I believe many people have doubts about how to build NFS shared storage service in Redhat. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to build NFS shared storage service in Redhat". Next, please follow the editor to study!
1. Install services in the server using yum repository to install yum install nfs-utils rpcbind-y//nfs-utils for NFS sharing, publishing and access / / rpcbind for remote procedure call mechanism support the system has installed these two services by default Chkconfig nfs onchkconfig rpcbind on can add these two services to boot 2, set a shared directory mkdir-p / opt/wwwroot / / in the server to create a shared folder vim / etc/exports / / edit the NFS service configuration file Add / opt/wwwroot 192.168.100.0Universe 24 (rw) or multi-user operation / opt/wwwroot 192.168.100.11 (ro) 192.168.100.22 (rw) / / (rw) to the configuration file to add read and write permissions 3. Start the service in the server service rpcbind startservice nfs start close the firewall: service iptables stop close the security option: setenforce 04, the client sets the yum install nfs-utils rpcbind-y installation service service rpcbind start / / start the service service nfs start / / start the service close the firewall: service iptables stop close the security option: setenforce 0 mkdir / share create shared file mount point 5, Mount the shared files in the server mount.nfs 192.168.100.107:/opt/wwwroot / share / / mount manually or automatically (add in / etc/fstab): 192.168.100.107:/opt/wwwroot / abc nfs defaults _ netdev 0 0tail-1 / etc/mtab / / confirm mount result 6. Test add file
Files are added at the / share mount point set by the client, and synchronously by the server.
At this point, the study on "how to build NFS shared storage service in Redhat" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.