农历(十月初一)
关于
友情链接
Toggle navigation
Harries Blog™
追心中的海,逐世界的梦
首页
编程技术
Java
软件架构
移动开发
后端
前端
大数据
数据库
算法
人工智能
测试
100 Days of AI Programming
代码管理
IT教程
springboot-demo
Java入门教程
bootstrap3
CSS
Apache基础教程
php
ionic 教程
Python
mysql教程
eclipse
Ubuntu VPS系统配置
AngularJS 教程
MongoDB教程
Struts2教程
springcloud-demo
Redis教程
Spring教程
Git教程
openfire参考指南
Jenkins进阶系列
Java设计模式
HBase教程
java-demo
Maven教程
hibernate教程
Docker 教程
memcached教程
Quartz指南
Ant教程
java实例教程
Hive教程
SpringCloud
ANTLR教程
XStream教程
Elastic-Job-Lite
Hazelcast教程
深入浅出MyBatis
ibaties教程
SVN教程
rabittmq教程
Hadoop教程
solr教程
WebService CXF学习
JPA教程
ActiveMQ中文指南
Java内存模型
dubbo教程
python3-demo
Linux入门视频教程
生活感悟
默认分类
博主自留地
一周一本书
一月一个人
互联网
互联网.出海
互联网.IPO
运维
Linux
docker
nginx
windows
操作系统
监控软件
vmware
虚拟化
tomcat
自动化
留言板
转载
发表于 2016年01月19日
浏览 (
930
)
评论 (0)
【Linux】Linux操作系统 NFS服务器配置与使用
Linux操作系统
NFS服务器配置与使用
OS:Red
Hat Enterprise
Linux
6.4
1 检查软件安装
[root@rhel64 ~]#
rpm -qa | grep nfs
2 编写配置文件 /etc/exports
[root@rhel64 ~]#
vi /etc/exports
3 启动服务
[root@rhel64 ~]#
service nfs start
[root@rhel64 ~]#
service nfs status
4 设置服务开机启动
[root@rhel64 ~]#
chkconfig nfs on
[root@rhel64 ~]#
chkconfig --list nfs
5 服务器端查看共享目录
[root@rhel64 ~]#
exportfs
[root@rhel64 ~]#
exportfs -v
[root@rhel64 ~]#
showmount -e
6 客户端查看共享
客户端(192.168.6.106 黄色终端)
[root@rhel64 ~]#
showmount -e 192.168.6.101
创建挂载点 临时挂载
[root@rhel64 ~]#
mkdir /mnt/nfs
[root@rhel64 ~]#
ls -ld /mnt/nfs
[root@rhel64 ~]#
mount 192.168.6.101:/tmp/ /mnt/nfs/
[root@rhel64 ~]#
df -Th
[root@rhel64 ~]#
cd /mnt/nfs
[root@rhel64 nfs]#
ls
[root@rhel64 nfs]#
touch 106file
[root@rhel64 ~]#
umount /mnt/nfs
7 服务器端以读写方式共享
[root@rhel64 ~]#
vi /etc/exports
[root@rhel64 ~]#
exportfs -rv
或 service nfs reload
[root@rhel64 ~]#
exportfs -v
8 客户端重新挂载
[root@rhel64 ~]#
mount 192.168.6.101:/tmp/ /mnt/nfs
[root@rhel64 ~]#
df -Th
[root@rhel64 nfs]#
touch 106file
[root@rhel64 nfs]#
ll 106file
nfsnobody 是因为默认 root_squash
[root@rhel64 nfs]#
su - tom
[tom@rhel64 ~]$
cd /mnt/nfs
[tom@rhel64 nfs]$
touch 106tomfile
[tom@rhel64 nfs]$
ll 106tomfile
9 no_root_squash
服务器端修改配置文件 重新读取配置文件
[root@rhel64 ~]#
vi /etc/exports
[root@rhel64 ~]#
service nfs reload
[root@rhel64 ~]#
exportfs -v
客户端重新挂载测试
[root@rhel64 ~]#
umount /mnt/nfs
[root@rhel64 ~]#
mount 192.168.6.101:/tmp/ /mnt/nfs/
[root@rhel64 ~]#
touch /mnt/nfs/106file2
[root@rhel64 ~]#
ll /mnt/nfs/106file2
10 客户端开机自动挂载/etc/fstab
[root@rhel64 ~]#
vi /etc/fstab
吕星昊
2016.1.19
?
正文到此结束
赞
0
赏
分享
本文标签:
src
服务器
安装
Enterprise
ip
操作系统
root
grep
ACE
tab
软件
目录
nfs
fstab
rpm
list
linux
tar
http
测试
配置
版权声明:
本文为互联网转载文章,出处已在文章中说明(部分除外)。如果侵权,请
联系本站长
删除,谢谢。
本文海报:
生成海报一
生成海报二
上一篇
超越继承之路:协议混合
下一篇
看看数据科学家们都在用什么:Github上的十大深度学习项目
热门推荐
配置虚拟站点
浏览(9,236)
评论(20)
修改上传文件权限
浏览(10,880)
评论(18)
VPS 自我监控
浏览(9,629)
评论(23)
OpenVZ VPS 额外支持
浏览(9,743)
评论(17)
openfire数据库安装指南
浏览(19,333)
评论(0)
openfire定制指南
浏览(10,820)
评论(17)
Caffe 深度学习框架上手教程
浏览(15,127)
评论(0)
ReactiveCocoa入门教程:第一部分
浏览(15,954)
评论(0)
开源HIDS-OSSEC使用实例:监测CC攻击
浏览(15,820)
评论(0)
Decorators in ES7
浏览(20,517)
评论(4)
相关文章
秒数转换成多少天/多少小时/多少分
如何将Ubuntu升级到4.x内核
枚举作为常量使用的一个小技巧
C0594组织恶意挖矿攻击,已攻陷数千个网站
“java.lang.IllegalArgumentException:没有配置匹配configSpec”打开相机意图
java – 具有孤立循环引用的垃圾收集行为?
奇舞周刊第296期(2019-03-01)
[Java并发-24-并发设计模式] 生产者-消费者模式,并发提高效率
zuihou-admin-cloud 1.3 发布, 多租户模式可自由切换
走出微服务误区:避免从单体到分布式单体
说给你听
本文目录
随机标签
新版人民币图样
mac
mmm
经验总结
g4
分词
V4ip
双11
StdSchedulerFactory
文档生成能力
招聘网站
Timefold Solver
Indie hackers
网站销售
v-show
JAVA教程
咖啡/麦片/冲饮
copyProperties
undertow
服务团队
数据库建模
Disruptor
捐助按钮
Timefold Solver
xmpp.org
EdgeOne
Swagger
rpm
stringify
家装主材
战略打击
Apache Hadoop
it-tools
混叠
北京 2016
Adverb
lambda
程序员
创繁致歉信!
zipkinzipkin
Android
consumer
非法传销
采购管理
构造方法
Bash Shell
_index
降薪
Sentinel
Lock wait timeout exceeded; try restarting transaction
数据库
书籍教程
springboot-demo
Java入门教程
bootstrap3
CSS
Apache基础教程
php
ionic 教程
Python
mysql教程
eclipse
Ubuntu VPS系统配置
AngularJS 教程
MongoDB教程
Struts2教程
springcloud-demo
Redis教程
Spring教程
Git教程
openfire参考指南
Jenkins进阶系列
Java设计模式
HBase教程
java-demo
Maven教程
hibernate教程
Docker 教程
memcached教程
Quartz指南
Ant教程
java实例教程
Hive教程
SpringCloud
ANTLR教程
XStream教程
Elastic-Job-Lite
Hazelcast教程
深入浅出MyBatis
ibaties教程
SVN教程
rabittmq教程
Hadoop教程
solr教程
WebService CXF学习
JPA教程
ActiveMQ中文指南
Java内存模型
dubbo教程
python3-demo
Linux入门视频教程
近期评论
wu先生
不会英语啊。
Harrries
前100名用户会展示特殊的纪念徽章
Harrries
需要魔法才能发打开,中国区不行
无往不利
https://pplx.ai/floraliu4199466 这个链接打不开是什么原因?
Harrries
5分钟 注册下载 登录 提一个问题,就可以找博主领取5块红包了,很简单
Harrries
可能有人安装的时候开了魔法也依然没办法安装,显示的是"等待网络连接解决方法:在存放安装包的目录下打开cmd,分别运行下面2个命令:set "https_proxy=http://127.0.0.1:1080"start "" ".\comet_installer_latest.exe"需要注意有一些科技用的不是1080端口,按需修改
Harrries
链接已添加
慕云
来看看,最近更新了一波,顺着友联过来的,几年过去了,网站越搞越好,厉害
匿名yangdongzhen590
哥太牛了
阳光星河
是呀,看您的IP显示在美国,还以为您移民了
随机文章
站长推荐
近期文章
1
nodejs抓取别人家的页面的始末
2
.Net平台-MVP模式再探(二)
3
lager源码阅读
4
以空白符结尾的 alias
5
Capsule:开源的 JVM 应用部署工具
6
Python3.4 Tutorial : Python3.4 Tutorial9 - Classes (Part 4)
7
使用带有start和end的属性
8
在MySQL的InnoDB存储引擎中count(*)函数的优化
9
golang基础知识之encoding/json package
10
仿windows10开始菜单的下拉导航菜单特效
1
VPS 自我监控
2
springboot接入多个ES启动时候自检报错
3
配置虚拟站点
4
openfire协议支持指南
5
修改上传文件权限
6
OpenVZ VPS 额外支持
7
2015年北京下第一场雪留念
8
openfire定制指南
9
mysql存储过程实例一:游标的使用
10
Linux删除或者新增SWAP分区
1
订阅组本地化语言缺失导致“元数据丢失”的原因与解决方法
2
🌿 LinguaDiary 封闭测试者招募公告
3
IDEA(IntelliJ IDEA) 中安装 Flutter
4
中国开发者注册美区 Google Play 账号验证失败解决方案 指南
5
注册美区(United States)Google Play 个人开发者账号
6
中国身份证注册美区 Apple Developer 个人账号完整教程
7
SaaS MVP:从0到1的功能闭环设计指南
8
从0到1可执行的“出海型SaaS最佳MVP路径
9
用 Comet,让你的每一个问题都得到更好的答案
10
Toolhub — 一个干净实用的在线工具集合
网站信息
文章总数:82,788 篇
文件总数:210,952 个
标签总数:2,449 个
分类总数:86 个
留言数量:2,588 条
在线人数:601 人
运行天数:4,771天
最后更新:2025年11月19日10点
×
输入密码查看文章详情
×
搜索文章
×
评论信息框
可以通过QQ号实时获取昵称和头像
×
山无棱江水为竭,冬雷震震夏雨雪,才敢请君舍
支付宝
微信
转账时请备注“
博客赞助
”
Loading...