Saturday, September 27, 2014

Installing a NFS server, and creating a mountpoint, in 30 seconds

This on RHEL/CentOS. For lazyness simplicity I install client and server on the same box :o) whose IP is

Installing a NFS server:

yum install nfs-utils nfs-utils-lib
chkconfig --levels 235 nfs on
/etc/init.d/nfs start

mkdir /var/nfs
chmod 777 /var/nfs
vi /etc/exports

exportfs -a

Creating a mountpoint
mkdir /home/users
mount -t nfs /home/users
echo ciao > /home/users/ciao.txt
cat /var/nfs/ciao.txt

done :o)

Useful links:

No comments: