Engine23
blogBannerImage
By Engine23

Setting up NFS and Subversion on Centos 6

$ yum update;

Get the NFS parts needed

yum install nfs-utils and yum install nfs-utils-lib;

$ yum install subversion

$ mkdir /var/nfs/

$ chmod -R 777 /var/nfs/

$ cd /var/nfs/

$ svn checkout http://wherever.yourcode.com/ /var/nfs/

$ rsync -vru --exclude-from 'exclude.txt' --progress -e ssh user@192.168.1.1:/remote/folder/ /var/nfs/

Turn off selinux

$ 0 >/selinux/enforce

Make sure selinux is not going to restart on a server reboot

chkconfig selinux off

 Set the nfs deamon to run on reboot

$ chkconfig nfs on

https://www.digitalocean.com/community/articles/how-to-set-up-an-nfs-mount-on-centos-6

$ vi /etc/exports

Add this

/var/nfs           client.ip.address.here(rw,sync,no_root_squash,no_subtree_check)

exportfs -a