In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor this time to share with you is a detailed explanation of linux how to build NFS file sharing server, the article is rich in content, interested friends can come to understand, I hope you can get something after reading this article.
Build NFS server by linux
In order to achieve data sharing in different operating systems, we generally build some servers for file sharing, nfs server is one of them, it realizes the sharing between linux and linux. Today I will share the steps of how to build a nfs server in the linux system for your reference.
Building steps
1. Install the required software packages for nfs
Yum install rpcbind nfs-utils
2. Create test files and assign permissions
Mkdir / home/testchmod-R 777 / home/test/cd / home/test/vim aaa/bbb.txt
3. Modify the configuration file
Vim / etc/exports write / home/test 192.168.121.0 amp24 (rw) shared file path allows shared network segment (shared file executable permissions) shared file executable permissions are: ro read-only access rw read-write access sync all data is written to the shared hide on request hide in total UID and GID mapping anonymous user anonymous for all_squash shared files in a shared directory that does not share its subdirectory no_hide shared NFS directory Suitable for public directories. No_all_squash retains all requests from UID and GID (default) root_squash root users of shared files are mapped to the same permissions as anonymous users (default) no_root_squas root users have full administrative access to the root directory
4. Start the service
Systemctl start rpcbind nfs setting Boot echo "192.168.121.38:/home/test / nfs nfs4 defaults 0 0" > > / etc/fstab mount-av
5. View shared information
Showmount-e 192.168.121.38 (here the ip address is the host address for building the server)
6. Access the nfs server
Linux side access:
Mount 192.168.121.38:/home/test/ / mnt/df has read this article about how linux builds a NFS file sharing server. If you think the article is well written, you can share it with more people.
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.