Directory
An environment
1.1 System Environment
1.2 Software Environment
1.3 Software version
Two-Installation
2.1 Server Installation
2.2 Server Startup
2.3 Client Installation
2.4 Client Mount
Three-proof
Body
An environment
1.1 System Environment CentOS 6.6 64-bit
[Email protected] ~]# lsb_release-alsb Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch: Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor id:centosdescription: CentOS Release 6.6 (Final) release:6.6codename:final
[Email protected] ~]# cat/proc/version Linux version 2.6.32-504.el6.x86_64 ([email protected]) (GCC version 4.4.7 201203 (Red Hat 4.4.7-11) (GCC)) #1 SMP Wed Oct 04:27:16 UTC 2014
1.2 Software Environment
Not currently
1.3 Software version
Yum installs, usually installs the latest version
Two-Installation
2.1 Installation
Install user root
[email protected] ~]# Yum install nfs-utils
2.2 Start
2.2.1
Start Service/etc/init.d/rpcbind Restart
Start Service/etc/init.d/nfs Restart
[Email protected] ~]#/etc/init.d/rpcbind restartstopping rpcbind: [OK]starting rpcbind: [OK][[email protected] ~ ]#/etc/init.d/nfs restartshutting down NFS daemon: [OK]shutting-NFS mountd: [OK]shutting down NFS quotas: [ Ok]shutting down RPC idmapd: [OK]starting NFS services: [OK]starting NFS quotas: [OK]starting NFS Mountd: [OK] Starting NFS daemon: [OK]starting RPC IDMAPD: [OK]
2.2.2 Configuration
Primary configuration file/etc/exports
Official website Description: Thisfile contains a list of entries, each entry indicates a volume, which is shared and what it is shared. Check The man pages (mans exports) for a complete description of the "the" Setup options for the file, although the Description here'll probably satisfy most people ' s needs.
Translation (rollover): This file lists the directories you want to share, which clients he is authorized to share, and what permissions the client has.
Example:
[email protected] etc]# less EXPORTS/NFSC 10.59.0.0/16 (Rw,sync,acl,no_root_squash)
2.3 Client Installation
The client installation method is the same as server side installation. Save here
2.4 Client Mount
Server-side, client-side build shared directory
Mkdir/nfsdir
Client Side Execution
Mount-t nfs-o rw ServerIP:/nfsdir /nfsdir
Three-proof
Client Side Execution Mount command
You can see if it's mounted successfully.
PostScript: Write bad, in fact, the configuration of this piece has a lot of things ...
Http://www.cnblogs.com/mchina/archive/2013/01/03/2840040.html
Although this article is a bit old, but the whole thing
This is the official website: But English, really do not want to translate this ...
Http://nfs.sourceforge.net/nfs-howto
CENTOS 6.6 NFS Server Setup