您的位置:首页 > 其它

NFS服务器架设

2015-12-08 22:32 316 查看
所用版本CentOS6.4
NFS server设置:

使用『 rpm -qa | grep nfs 』与『 rpm -qa | grep rpcbind 』命令查询有无安装nfs与rpcbind,如果没有安装,使用『 yum install nfs-utils 』进行在线安装

编辑NFS配置文件,分享/tmp目录,设置分享权限为任何人都能进入该目录且具有rw(读写)的权限,并禁止以root身份进入该目录,内容如下 :
# vi /etc/exports
/tmp *(rw,root_squash)

启动NFS
# /etc/init.d/rpcbind start
# /etc/init.d/nfs start
# /etc/init.d/nfslock start
# chkconfig rpcbind on
# chkconfig nfs on
# chkconfig nfslock on

利用showmount命令测试是否可以联机
# showmount -e localhost
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  服务器 server nfs