NFS
Create an /etc/exports file
/data 192.168.1.0/255.255.255.0(rw,sync,no_root_squash)
Install NFS server
yum install nfs-utils
yum install portmap
/etc/init.d/nfs start
/etc/init.d/portmap start
chkconfig nfs on
chkconfig portmap on
Use showmount to check what you are exporting
[root@gaxweb ~]# showmount -e localhost
Export list for localhost:
/data 192.168.1.0/255.255.255.0
Use exportfs to re-read /etc/exports after changes
exportfs -r
Install client utils and start portmap
yum install nfs-utils
yum install portmap
/etc/init.d/portmap start
chkconfig portmap on
Mount the share
mount gaxweb:/data /data
If you need to remount the share
mount -o remount,rw /data
Set your fstab accordingly or use /etc/rc.local to mount.