NetworkFileSystem (Network File System) under Ubuntu7.10 can share directories of different hosts (different OS) over the network-you can mount directories of remote hosts through NFS, accessing this directory is like accessing a local directory! Generally, nfs can be used to easily share unix-like systems. However, to share unix-like systems with windows systems, samba must be used! NFS runs on SUN's RPC
Network File System (NFS) in Ubuntu 7.10 can share directories of different hosts (different OS) over the Network-the remote host directory can be mounted through NFS, accessing this directory is like accessing a local directory!
Generally, nfs can be used to easily share unix-like systems. However, to share unix-like systems with windows systems, samba must be used!
Based on SUN's Remote Procedure Call (Remote Procedure Call), RPC defines a system-independent method for inter-process communication. therefore, the NFS server can also be viewed as an RPC server.
Because NFS is an RPC service program, you must map the port before using it-set it through portmap. for example, when an NFS client initiates an NFS service request, it must first obtain a port ). therefore, it first obtains the port number through portmap. (not only NFS, but portmap needs to be set before all RPC service programs start)
Several NFS-related files and commands
1,/etc/exports
The access to the NFS volume is approved by exports, which enumerate several hostnames that have the right to access the file system on the NFS server.
2,/sbin/exportfs
Maintain NFS Resource Sharing. You can reset the shared directory of/etc/exports, unmount the shared directory of NFS Server, or share it again.
3,/usr/sbin/showmount
It is used on the NFS Server, while showmount is mainly used on the Client. showmount can be used to view NFS shared directory resources.
4,/var/lib/nfs/xtab
NFS record document: You can view which clients are connected to the NFS host.
The following are not directly responsible for NFS. In fact, they are responsible for all RPC
5,/etc/default/portmap
In fact, portmap maps all the RPC service ports. Its content is very simple (detailed later)