In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install nfs in Suse 10, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
one。 Server side
a. Check whether nfs is installed: rpm-qa | grep nfs & & rpm-qa | grep portmap (with installed nfs-utils 1.0)
Modify configuration file / etc/exports
E.g. / var/log/nfs 192.168.0.3 (rw,sync,no_root_squash) (without no_root_squash, the client side will not be able to use root mount (reason given by server: Permission denied). Try again to remove no_root_squash and restart.
2.nfsserver, root mount is available. Need to study) several files related to NFS, commands
A, / etc/exports
Access to NFS volumes is approved by exports, which enumerates several hostnames that have access to file systems on NFS servers.
B, / sbin/exportfs
Maintain NFS resource sharing. You can use it to reset the shared directory of / etc/exports, uninstall the shared directory of NFS Server, or re-share.
C, / usr/sbin/showmount
It is used on the NFS Server side, while showmount is mainly used on the Client side. Showmount can be used to view directory resources shared by NFS.
D, / var/lib/nfs/xtab
NFS record document: it allows you to see which Client is connected to the NFS host.
The following are not directly responsible for NFS, in fact they are responsible for all RPC
E, / etc/default/portmap
In fact, portmap is responsible for mapping all RPC service ports, and its content is very simple (more on this later).
F, / etc/hosts.deny
Set the host that denies portmap service
G, / etc/hosts.allow
Set the hosts that allow portmap services
1. The specific parameters are as follows:
Rw: can write permissions
Ro: read-only permission
No_root_squash: if you log in to the shared directory of the NFS host, if you are a root user, then the permission is also root, but this is not secure.
Root_squash: if the logged-in user is root, its permissions will become nobody
All_squash: no matter what the logged-in user is, the user has the right of anonymous user.
Sync: data is synchronously written to hard disk and memory
Async: data is temporarily stored in memory instead of being written to the hard disk
Anounid: you can set your own uid, but it must be the same as the user uid in the / etc/passwd directory
Anongid: same as anonuid, but becomes group id
2. / etc/hosts.deny
Portmap:ALL
Lockd:ALL
Mountd:ALL
Rquotad:ALL
Statd:ALL
/ etc/hosts.allow
Portmap: 192.168.0.1, 192.168.0.2
Lockd: 192.168.0.1, 192.168.0.2
Rquotad: 192.168.0.1, 192.168.0.2
Mountd: 192.168.0.1, 192.168.0.2
Statd: 192.168.0.1, 192.168.0.2
3. Start the service
Service portmap start
Service nfsserver start
4. Rpcinfo-p localhost can view service information (nfs,)
Showmount [- ae] localhost shows whether it is mounted or not
Nfsstat provides statistics on the operation of NFS. Including client-side RPC and NFS statistics, as well as server-side RPC and NFS statistics.
Exportfs [- aruv] exportfs to re-scan the / etc/exports file without restarting the nfs service
Parameter description:
-a: settings for mounting (or uninstalling) all / etc/exports files
-r: set from the newly mounted / etc/exports, in addition, synchronously update the contents of / etc/exports and / var/lib/nfs/xtab
-u: uninstall a directory
-v: displays the shared directory on the screen on export
two。 Client
Service portmap start
Mount-o nolock-t nfs:/home/lqm / mnt/nfs
Mount-t nfs-o rsize=1024,wsize=1024,timeo=3,udp 192.168.0.3:/var/log/nfs / var/tmp
Automatically load the NFS server export directory at startup: vi / etc/fstab
192.168.0.3:/var/log/nfs / mnt nfs rsize=8192,wsize=8192,timeo=14,intr
192.168.0.3:/tmp / mnt/nfs nfs defaults 0 0
The above is all the contents of the article "how to install nfs in Suse 10". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.