ubuntu 配置 nfs 服务器
来源:互联网 发布:怎样修改淘宝收货地址 编辑:程序博客网 时间:2024/04/30 00:00
一 安装 NFS
$ sudo apt-get install nfs-kernel-server
$ sudo apt-get install nfs-common
二 配置/etc/exports
$ sudo vi /etc/exports
文本末添加
/root/rootfs *(rw,sync,no_root_squash,no_subtree_check)
然后在终端执行 $chmod 777 -R /root/rootfs
$ sudo showmount -e
显示 clnt-create : RPC : Program not registered
sudo
$ sudo
$
exportfs -r 更新
showmount localhost -e
显示
Export list for 192.168.1.116
/root/rootfs *
三 启用
$ sudo /etc/init.d/nfs-kernel-server restart
重启 nfs 服务
显示如下
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
挂载测试
$ mount -t nfs -o nolock localhost:/root/rootfs
/mnt
执行后,进入/mnt 目录中,如果可以看到/root/rootfs 中的内容,则说明 nfs 搭建成功!
注:
参考于:http://blog.csdn.net/astonqa
$ sudo apt-get install nfs-kernel-server
$ sudo apt-get install nfs-common
二 配置/etc/exports
$ sudo vi /etc/exports
文本末添加
/root/rootfs *(rw,sync,no_root_squash,no_subtree_check)
然后在终端执行 $chmod 777 -R /root/rootfs
$ sudo showmount -e
显示 clnt-create : RPC : Program not registered
sudo
$ sudo
$
exportfs -r 更新
showmount localhost -e
显示
Export list for 192.168.1.116
/root/rootfs *
三 启用
$ sudo /etc/init.d/nfs-kernel-server restart
重启 nfs 服务
显示如下
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
挂载测试
$ mount -t nfs -o nolock localhost:/root/rootfs
/mnt
执行后,进入/mnt 目录中,如果可以看到/root/rootfs 中的内容,则说明 nfs 搭建成功!
注:
参考于:http://blog.csdn.net/astonqa
0 0
- ubuntu nfs服务器配置
- Ubuntu配置NFS服务器
- ubuntu配置NFS服务器
- ubuntu nfs服务器配置
- ubuntu 配置nfs服务器
- ubuntu服务器nfs配置
- Ubuntu配置nfs服务器
- ubuntu 配置nfs 服务器
- ubuntu 配置 nfs 服务器
- ubuntu 配置 nfs 服务器
- ubuntu 8.10配置NFS服务器
- ubuntu 8.10配置NFS服务器
- Ubuntu NFS服务器的配置
- Ubuntu 下NFS服务器配置
- ubuntu 下配置nfs服务器
- ubuntu下配置nfs服务器
- Ubuntu NFS服务器的配置
- Ubuntu下配置NFS服务器
- 练习
- Scala控制结构讲解
- 我的比赛
- 关于获取HTCvive手柄上的个个按键
- C++和C结构体上的区别
- ubuntu 配置 nfs 服务器
- AngularJs2-使用WebStorm创建AngularJs2项目
- Leetcode刷题记——29. Divide Two Integers(整数相除Divide two integers without using multiplication, division)
- Java程序员必备的11款免费IDE编辑器
- 算法--枚举策略
- 面试题(道听途说)
- iOS UIWebView重写或者监听js Alter/Confirm/Prompt函数
- Python简单实现基于VSM的余弦相似度计算
- word2vec 构建中文词向量