Centos6.6 install the nfs Network File System, centos6.6nfs
I. Introduction
Most nfs network file systems are used for Intranet file sharing. For example, files uploaded to the cluster are shared and often used in the image part. Of course, when the data volume is large, you need to separate them, as a special interface, it is better to introduce the basic installation environment:
1) The number of CIDR blocks in the same region as the number of CIDR blocks in the same region.
2) nfs-utils-1.2.3
3) rpcbind-0.2.0
Ii. Installation
yum install -y rpcbind nfs-utils
Iii. Configuration
Echo "/data 192.168.19.145 (rw)">/etc/exports # specify the directory for running the mounted host and the Permissions
4. Start
$ /etc/init.d/rpcbind start$ /etc/init.d/nfslock start$ /etc/init.d/nfs start$ chkconfig rpcbind on$ chkconfig nfslock on$ chkconfig nfs on$ iptables -t filter -A INPUT -s 192.168.19.145 -m state --state NEW -j ACCEPT
# Remember to allow the Firewall
5. Check
$ ps aux|grep nfs$ ps aux|grep rpcbind$ netstat -ntlp
# This Dongdong port has a bunch of ports opened
Vi. Client Testing
$ Yum install-y nfs-utils # install $ showmount-e 192.168.19.128 # view the shared directory $ mount-t nfs 192.168.19.128:/data/mnt # mount