CentOS 7.2 挂载网络磁盘
来源:互联网 发布:知乎有mac版吗 编辑:程序博客网 时间:2024/05/20 05:55
服务端
1. 安装nfs-utils, rpcbind
yum install nfs-utls rpcbind
2. 设置rpcbind和nfs服务开机自动启动
chkconfig nfs on
chkconfig rpcbind on
3. 启动rpcbind和nfs服务,顺序不要弄反,反了会出现类似program not registered
的错误
service rpcbind start
service nfs start
4. 创建共享目录
mkdir /data/share
5. 编辑共享设置文件/etc/exports
vi /etc/exports
文件后面添加如下内容: /data/share 192.168.1.24(rw,no_root_squash,no_subtree_check)
说明:192.168.1.24`是客户端地址
6. 让配置文件生效
exportfs -a
7. 查看是否共享成功
showmount -e
会显示类似下面的效果:Export list for InnerHost:/data/share/ 192.168.1.24
客户端
1. 安装nfs-utils, rpcbind
yum install nfs-utls rpcbind
2. 设置rpcbind和nfs服务开机自动启动
chkconfig nfs on
chkconfig rpcbind on
3. 启动rpcbind和nfs服务,顺序不要弄反
service rpcbind start
service nfs start
4. 查看是否可以探测到服务器的共享
showmount -e 192.168.1.1
说明:192.168.1.1是服务器的IP地址
5. 创建映射目录
mkdir /data/link-share
6. 编辑挂载配置文件/etc/fstab
vi /etc/fstab
在文件后面添加下面的内容: 192.168.1.1:/data/share /data/link-share nfs rw,tcp,intr 0 1
说明:192.168.1.1是服务器的IP地址
7. 挂载
mount -t nfs 192.168.1.1:/data/share /data/link-share
阅读全文
0 0
- CentOS 7.2 挂载网络磁盘
- Centos磁盘挂载操作
- linux centos 磁盘挂载
- CentOS 开机自动挂载磁盘
- centos ntfs格式磁盘挂载
- Linux-CentOS版挂载网络磁盘方法
- NFS实现Linux网络磁盘挂载
- Linux使用NFS(网络文件系统)挂载网络磁盘
- centos 重新挂载ext4磁盘到/home目录下
- CentOS 6.3开机自动挂载磁盘和文件夹
- CentOS 6.3开机自动挂载磁盘和文件夹
- CentOS 6.3开机自动挂载磁盘和文件夹
- 为虚拟机中的centos系统创建并挂载磁盘
- Centos开机自动挂载windows中的ntfs磁盘
- CentOS 6.3开机自动挂载磁盘和文件夹
- 嵌入式 Centos开机自动挂载windows中的ntfs磁盘
- Centos开机自动挂载windows中的ntfs磁盘
- CentOS 6.3开机自动挂载磁盘和文件夹
- Golang
- 1064. 朋友数(20)
- http请求一个servlet(接口)地址
- C语言是什么 重要吗?
- Image_loader
- CentOS 7.2 挂载网络磁盘
- 深入剖析ThreadLocal
- 6 ZigZag Conversion
- PAT 乙级练习题1021. 个位数统计 (15)
- 推荐一个C# GDI+ 自定义控件
- JavaEE中Web服务器、Web容器、Application服务器区别及联系
- 服务器域名解析速度慢
- 网狐荣耀版或其它安卓项目出现Application cannot be exported due to the error(s) below.错误的处理方法
- 尝试用图像处理来实现UI设计稿的自动标注