In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 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 the Ubuntu nfs configuration system", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to install the Ubuntu nfs configuration system"!
Before recommending a well-used nfs service system, like letting you know something about the Ubuntu nfs service system, and then giving a comprehensive introduction to the Ubuntu nfs service system, I hope it will be useful for you to configure the Ubuntu nfs server. It can be seen that Ubuntu belongs to the linux camp. By the way, since the landlord does not have documents, why do you have to learn ubuntu? it is more convenient to learn documents.
The steps to install and configure Ubuntu nfs service under Ubuntu are as follows:
1. Install Ubuntu nfs
There is no Ubuntu nfs server installed by default on Ubuntu, so let's install the Ubuntu nfs server first: $sudo apt-get install nfs-kernel-server
In some documentation, it is suggested that apt-get is also needed to manually install nfs's client nfs-common and port mapper portmap, but this is not necessary because apt automatically installs them for us when we install nfs-kernel-server.
2. Configuration / etc/exports
The directories and permissions that Ubuntu nfs allows to mount are defined in the file / etc/exports.
For example, to share the rootfs directory under the root directory, we need to add the following line to the end of the / etc/exports file: / rootfs * (rw,sync,no_root_squash)
Where / rootfs is the directory to be shared, * means all network segments are allowed to access, rw is read-write permission, sync is data synchronous write to memory and hard disk, no_root_squash is the user permission of the Ubuntu nfs client sharing directory. If the client uses the root user, the client has the root permission for the shared directory.
Other parameters commonly used in Ubuntu nfs are:
Ro read-only access
Rw read-write access sync all data is written to the share on request
Async nfs can respond to requests before writing data
Secure nfs is sent over a secure TCP/IP port below 1024
Insecure nfs is sent over more than 1024 ports
Wdelay if multiple users want to write to the nfs directory, write in groups (default)
No_wdelay if more than one user wants to write to the nfs directory, it is written immediately, and this setting is not required when using async.
Hide does not share its subdirectories in the nfs shared directory
A subdirectory of the no_hide shared nfs directory
Subtree_check forces nfs to check the permissions of the parent directory when sharing a subdirectory such as / usr/bin (default)
No_subtree_check is relative to the above, and the permissions of the parent directory are not checked
The UID and GID of all_squash shared files map the anonymous user anonymous, which is suitable for public directories.
No_all_squash retains UID and GID of shared files (default)
All requests from root_squash root users are mapped to the same permissions as anonymous users (default)
No_root_squas root users have full administrative access to the root directory
Anonuid=xxx specifies the UID of anonymous users in the nfs server / etc/passwd file
Anongid=xxx specifies the GID of anonymous users in the nfs server / etc/passwd file
3. Ubuntu nfs restarts the service
$sudo / etc/init.d/portmap restart
$sudo / etc/init.d/nfs-kernel-server restart
4. Test Ubuntu nfs
At this point, you can run the following command to display the shared directory:
$showmount-e
Or you can mount it on the local disk using the following command, for example, mount / rootfs to / mnt:
$sudo mount-t nfs localhost:/rootfs / mnt
You can run the df command to see if the mount is successful. After viewing, you can use the following command to uninstall:
$sudo umount / mnt
Thank you for your reading, the above is the content of "how to install the Ubuntu nfs configuration system", after the study of this article, I believe you have a deeper understanding of how to install the Ubuntu nfs configuration system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.