[CentOS] NFS

2014. 9. 3. 16:13OS/CentOS

# yum -y install nfs-utils

# chkconfig rpcbind on

# chkconfig nfs on

# vi /etc/sysconfig/nfs

>---------------------------------------<

RQUOTAD_PORT=875

LOCKD_TCPPORT=32803

LOCKD_UDPPORT=32769

MOUNTD_PORT=892

STATD_PORT=662

STATD_OUTGOING_PORT=2020

>---------------------------------------<


# vi /etc/exports

>---------------------------------------<

/home/www 192.168.0.0/24(rw,sync, no_root_squash,no_subtree_check)

>---------------------------------------<


# service rpcbind start

# service nfs start

# vi /etc/sysconfig/iptables

>---------------------------------------<

(portmap)

tcp 111

udp 111

(nfs)

tcp 2049

udp 2049


tcp 875

udp 875

tcp 32803

udp 32769

tcp 892

udp 892

tcp 662

udp 662

tcp 2020

udp 2020

>---------------------------------------<


# service iptables restart

'OS > CentOS' 카테고리의 다른 글

[CentOS] Web  (0) 2014.09.05
[CentOS] Samba  (0) 2014.09.03
[CentOS] RAID  (0) 2014.08.25
[CentOS] Network Bond  (0) 2014.08.04
[CentOS] fail2ban  (0) 2014.08.04