CENTOS 6.6 nfs 服务器搭建

为什么80%的码农都做不了架构师>>   

hot3.png

目录

一 环境

1.1 系统环境

1.2 软件环境

1.3 软件版本

二 安装 

2.1 server  安装 

2.2 server 启动

2.3 client 安装

2.4 client 挂载

三 验证

正文

一 环境 

1.1 系统环境  CentOS 6.6  64位

1.2 软件环境  

   暂无

1.3 软件版本  

 yum 安装,一般都是安装最新版本

二 安装

2.1 安装

安装用户root

2.2 启动

2.2.1

启动服务/etc/init.d/rpcbind restart

启动服务/etc/init.d/nfs restart

2.2.2 配置

主要配置文件 /etc/exports

官网描述:This file contains a list of entries; each entry indicates a volume that is shared and how it is shared. Check the man pages (man exports) for a complete description of all the setup options for the file, although the description here will probably satisfy most people’s needs.

翻译(意翻):这个文件里 列出你要共享的目录,他被授权哪些客户端共享,客户端具有什么权限。

示例:

2.3 client 安装 

客户端安装方法同server 端 安装。此处省

2.4 client 挂载

server 端,client 端都建共享目录

mkdir /nfsdir

client 端执行

mount -t nfs -o rw serverip:/nfsdir /nfsdir

三 验证

client 端 执行 mount 命令

就可以看看是否挂载成功

后记: 写的不好,其实配置这块有好多东西。。。

http://www.cnblogs.com/mchina/archive/2013/01/03/2840040.html

这篇文章虽然有点老,但是东西还全

这个是官网:不过是英文,实在不想翻译这个。。。

http://nfs.sourceforge.net/nfs-howto


转载于:https://my.oschina.net/tacg/blog/502825

文章知识点与官方知识档案匹配,可进一步学习相关知识云原生入门技能树服务网格(istio)ServiceMesh介绍8582 人正在系统学习中 相关资源:wax_tasks:使用蜡Wa处理收集数据的实用程序任务-其它代码类资源…

来源:weixin_33911824

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2015年8月7日
下一篇 2015年8月7日

相关推荐