The premise is that two machine firewalls are turned off in case of service iptables stop
Check to see if the NFS service is installed, which is installed by default
See if the Portmap is installed
Restart NFS Server service NFS Restart
Chkconfig NFS On Set boot auto-start
Vim/etc/exports Modifying the configuration file for NFS
Service NFS Restart Restart again
To the client view share: Showmount-e 192.168.18.104
Mount to the client's/data directory
The file cannot be created because the/pub file in the configuration is read-only and the server does not give permission
Then we'll mount the/test file server:
Client: Mount-t NFS 192.168.18.104:/test/data2
You can view the files on the server side:
Same as above and cannot be created
On the server: chmod o+w/test This creates a file that needs to be configured to be readable and writable, and then add permissions to the file on the server-rw-r--r--1 nfsnobody nfsnobody 0 Jan 02:18 Lalal
-------------------------------------------------------------------------Supplement:
Client needs a port that can be connected when clients connect to the services provided by RPC server
Port control: portmap,yum-y Install Nfs-utils Portmap The default is the one that has been installed successfully
Common Parameters for NFS sharing:, comma ', ' separating RO read-only accessRW read/write accessSync all data is written to the share at request timeSecure NFS is sent over the 1024 portsinsecure sent over 1024 portsHide do not share subdirectories during NFS sharingNo_hide Share subdirectoriesAll_sqush UID and GID mappings for shared files anonymous user anonymous, suitable for public directoryNo_root_squash Root user has full access permissions to the root directoryanonuid=xxx Specify the UID of an anonymous user in the NFS server/etc/passwd file
NFS Management:exports -A: All content in Mount or Umount/etc/exports
- R: Re-shared Directories in Mount and/etc/exports
- u:Umount Directory
- V:View
Exports-au to uninstall all shared directoriesEXPORTS-RV re-share all directories and output details
Client Mount:Mount-T NFS hostname (ORIP):/directory /Catalogue
Chkconfig--list |grep RPC Check the boot-up list, filter out the RPC
------------------------------------------------------------------------------------------------Linux Process Management ps,ps aux, Top,iostat,ps Tree,vmstat, SAR
1,PS: Process monitoring Commands
PS aux
2:top
, 3,SAR:
RPM-IVH sysstat-7.0.2-3.el5_5.1.i386.rpm
4,iostat:
From for notes (Wiz)
NFS network sharing and process management for Linux