EC2 に NFS サーバ構築した メモ

# sudo su -
# yum -y install portmap
# yum -y install nfs-utils
# yum -y install nfs-utils-lib

# mkdir /data

# vi /etc/exports
/data        10.99.99.99(rw)

# vi /etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

# vi /etc/hosts.allow
portmap: 10.99.99.99
lockd: 10.99.99.99
rquotad: 10.99.99.99
mountd: 10.99.99.99
statd: 10.99.99.99

# chkconfig nfs on
# chkconfig --list nfs
nfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off

# /etc/init.d/rpcbind start
# /etc/init.d/nfs start
# /etc/init.d/nfslock start