Install NFS In CentOS
OS: CentOS 6.5
NFS Server IP: 124.124.124.150
NFS Client IP: 124.124.124.148
1. Install NFS - Server
yum install nfs-utils
2. Configuration
vi /etc/idmapd.conf
Add this line
Domain = vannakk.org
Edit file
vi /etc/exports
/home 124.124.124.0/24(rw,sync,no_root_squash,no_all_squash)
Start service nfs server
/etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
Startup service
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
Install NFS - Client
yum -y install nfs-utils
Start service nfs server
/etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
Startup service
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
Test show Mount
Mount Drive
Create a mount point
mkdir /mnt/nfsdrive
Add auto in startup with NFS
vi /etc/fstab
Add this line:
124.124.124.150:/home /mnt/nfsdrive nfs defaults 1 1
Done,
#NFS #CentOS #Vannakk
No comments:
Post a Comment