HOw To do NFS

View previous topic View next topic Go down

HOw To do NFS

Post  Admin on Wed Nov 25, 2009 3:01 am

HOw To do NFS

# rpm -qa | grep nfs
# rpm -qa | grep portmap
# yum install nfs*
# rpcinfo -p
# vim /etc/sysconfig/nfs
MOUNT_PORT="4002"
STATD_PORT="4003"
LOCKD_TCPPORT="4004"
LOCKD_UDPPORT="4004"


# vim /etc/exports
/data 192.168.1.0/255.255.255.0(rw,no_root_squash,sync)
/home/nfstest *(rw,sync)

# exportfs -r -refresh
# exportfs -v -display list
# exportfs -a -export all
# exportfs -u -unexport

# service nfs restart
# service portmap restart
# rpcinfo -p localhost
# service nfslock restart
# service netfs restart
# showmount -e
# showmount -e localhost
# vim /etc/hosts.deny
# vim /etc/hosts.allow
# getenforce
# setenforce 0
# cat /var/log/messages

vim /etc/fstab
192.168.1.222:/data/ /mnt/pub nfs defaults 0 0
avatar
Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum