NFS Introduction: (Encyclopedia)
The NFS ( Network File system) , which is one of the file systems supported by FreeBSD, allows computers in the network to share resources across TCP/IP networks. In an NFS application, a local NFS client application can transparently read and write to files located on the remote NFS server, just as you would access a local file.
IP planning
Server: 192.168.0.135 client: 192.168.0.134
Access control:
Service Iptales Stop chkconfig iptables stop sed-i "s/selinux=enforeing/selinux=disabled/g"/etc/sysconf Ig/selinux
One: Install. Under CentOS6 version
Yum Install nfs-utils rpcbind-y
Two: Start
Service NFS Start Service Rpcbind start
Three: Create a shared directory
192.168.0.135 Mkdir/web Touch/web/1.txt
Four: Configure the exports file
Vi/etc/exports/web 192.168.0.0/24 (Rw,no_root_squash)
V: View the server-side shared folders
SHOWMOUNT-E 192.168.0.135
VI: Client Mount
Mount-t NFS 192.168.0.135:/web/web-o RW
Seven: Boot mount
Vi/etc/fstab 192.168.0.135:/web/web NFS Defaults 0 0
This article from the "Do not ask for the best, only better" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1731264
Installing the Network File System (NFS) under the CentOS6 series