Mark's
Installation:
Yum-y Install Nfs-utils Rpcbind
Server for NFS configuration:
/home/nfs 192.168.150.* (Rw,sync,no_root_squash)
/home/nfs local path that can be accessed by other users
192.168.150.* users who are linked under this IP can access the
(Rw,sync,no_root_squash) PS: There is no space here and IP address
RW: Read and Write permissions
Sync: Files are written to both the hard disk and memory
No_root_squash:root user is compressed as the root user of NFS server
Start the service:
Service NFS Start
If the following error occurs:
Starting NFS services: [OK]
Starting NFS Quotas:cannot register service:RPC:Unable to receive; errno = Connection refused
Rpc.rquotad:unable to register (Rquotaprog, Rquotavers, UDP).
[FAILED]
Starting NFS mountd: [FAILED]
Starting NFS daemon:rpc.nfsd:writing FD to Kernel Failed:errno 111 (Connection refused)
Rpc.nfsd:unable to set any sockets for NFSD
[FAILED]
RH Operating System After version 6.0 does not have the Portmap service to control the startup of RPC, due to NFS and Nfslock boot needs to register RPC, RPC does not start will be an error.
Workaround: Start Rpcbind&rpcidmap rpcbind is the default RPC service after version 6.0, so start with NFS first. If you do not start Rpcidmap, you will create a mapping error for user rights, and the user's permissions appear to be a string of numbers.
[[email protected] ~]#/etc/init.d/rpcbind start
Starting rpcbind: [OK]
[[email protected] ~]#/ETC/INIT.D/RPCIDMAPD start
Starting RPC IDMAPD: [OK]
[[email protected] ~]#/etc/init.d/nfs start
Starting NFS services: [OK]
Starting NFS quotas: [OK]
Starting NFS mountd: [OK]
Starting NFS daemon: [OK]
Referenced from: http://www.linuxyw.com/a/yunweiguzhang/20130520/405.html
Client Startup:
/etc/init.d/rpcbind start
Mount
Mount-t NFS 192.168.150.130:/home/nfs
Very simple.
Reference: http://www.it165.net/admin/html/201405/3177.html
Linux NFS Installation record