SERVER
Set services to run on boot:
1 2 3 |
/sbin/chkconfig --levels 345 portmap on /sbin/chkconfig --levels 345 nfslock on /sbin/chkconfig --levels 345 nfs on |
Edit /etc/exports and add line:
1 |
/home web2(rw,no_root_squash) |
Edit /etc/hosts.deny and add lines:
1 2 3 4 5 |
portmap:ALL lockd:ALL mountd:ALL rquotad:ALL statd:ALL |
Edit /etc/hosts.allow and add lines:
1 2 3 4 5 |
portmap: 174.132.33.204 lockd: 174.132.33.204 rquotad: 174.132.33.204 mountd: 174.132.33.204 statd: 174.132.33.204 |
Start the services:
1 2 3 |
/sbin/service portmap restart /sbin/service nfslock restart /sbin/service nfs restart |
Run this command:
1 |
/usr/sbin/rpcinfo -p |
To get a list of running rpc services. Verify that portmapper, nfs and mountd are running.
CLIENT
Set services to run on boot:
1 2 |
/sbin/chkconfig --levels 345 portmap on /sbin/chkconfig --levels 345 nfslock on |
Create the mount point:
1 |
mkdir /shared |
Edit /etc/fstab and add line:
1 |
web1:/home /shared nfs rw,rsize=32768,wsize=32768,auto,intr,bg 0 0 |
Activate the mount:
1 |
mount /shared |