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
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
相关文章推荐
- 小心服务器内存居高不下的元凶--WebAPI服务
- 运维入门
- 拿到OK2440开发板之后——连接nfs服务器
- Seafile Server本地权限提升漏洞(CVE-2014-5443)
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Linux5.9无人值守安装
- 数据中心和云未来的十二大趋势
- 使用zabbix监控Nginx活动状态--Part1
- 高效访问Internet-启用ISA Server的缓存
- 用vsftp快速搭建ftp服务器
- Linux快速构建apache web服务器
- 服务器监控策略浅谈
- [游戏资讯]《极品飞车16:亡命狂飙》配置需求公布
- windows server域用户提升到本地更高权限组中的方法
- 如何降低服务器采购成本 原理分析
- 完美解决SQL Server 安装问题:以前的某个程序安装已在安装计算机上创建挂起的文件操作
- 建议的服务器分区办法
- IIS 错误 Server Application Error 详细解决方法
- 服务器托管六大优势分析