标签:
NFS的安装配置:
centos 5 :
yum install nfs-utils portmap
centos 6 :
yum install nfs-utils rpcbind
chkconfig --level 35 nfs on
chkconfig --level 35 portmap/rpcbind on
服务器端:
建立挂载目录
mkdir /opt/nfs
chown -R nfsnobody:nfsnobody /opt/nfs
vi /etc/exports
添加行:
/opt/nfs 192.168.10.0/24(rw,sync,root_squash)
service nfs start
service portmap/rpcbind start
客户端:
建立挂载目录
mkdir /opt/dirname
chmod 777 /opt/dirname
service nfs start
service portmap/rpcbind start
mount -t nfs 192.168.x.x:/opt/nfs /opt/dirname
自动挂载:
/etc/fstab
192.168.x.x:/opt/nfs /opt/dirname nfs defaults 0 0
标签:
原文地址:http://www.cnblogs.com/tofupapa/p/4269809.html