ubuntu nfs server config

(1)#sudo apt-get install nfs-kernel-server

打开/etc/exports文件,在末尾加入:

/home/hyq *(rw,sync,no_root_squash)

注:nfs允许挂载的目录及权限,在文件/etc/exports中进行定义,各字段含义如下:

/home/hyq:要共享的目录

* :允许所有的网段访问

rw :读写权限

sync:资料同步写入内在和硬盘

no_root_squash:nfs客户端共享目录使用者权限

重启服务:
#sudo /etc/init.d/portmap restart                  <---重启portmap,
#sudo /etc/init.d/nfs-kernel-server restart      <---重启nfs服务
#showmount -e                                          <---显示共享出的目录

注:nfs是一个RPC程序,使用它前,需要映射好端口,通过portmap设定

现在可以在本机上试一下:
#sudo mount -t nfs localhost:/home/kevin /mnt

注:localhost为本机linux的IP地址

这样就把共享目录挂到了/mnt目录,取消挂载用:
#sudo umount /mnt

如果用在嵌入式设备上挂载,要加上参数-o nolock

我在开发板上使用的挂载命令:

mount -t nfs -o nolock 192.168.1.8:/home/kevin /mnt

时间: 2024-08-24 22:54:31

ubuntu nfs server config的相关文章

ubuntu tftp server config

1.安装tftp-server sudo apt-get install tftpd-hpa sudo apt-get install tftp-hpa(如果不需要客户端可以不安装) tftp-hpa是客户端 tftpd-hpa是服务器端 2.配置TFTP服务器 sudo vim /etc/default/tftpd-hpa 将原来的内容改为: TFTP_USERNAME=”tftp” TFTP_ADDRESS=”0.0.0.0:69″ TFTP_DIRECTORY=”tftp根目录” #服务器

Ubuntu 12.04安装NFS server

首先安装nfs-kernel-server apt-get install nfs-kernel-server 然后创建一个目录: mkdir -p /opt/share 并赋予权限777: chmod -R 777 /opt/share 在/etc/exports文件中添加配置: /opt/share 10.112.18.0/255.255.255.0(rw,no_root_squash) 在/etc/hosts.allow中添加配置: portmap:10.112.18.0/255.255.

synergy配置 Ubuntu作Server, Win 7作client

Synergy 允许你轻松地在你办公桌上多台计算机之间共享你的鼠标和键盘,它免费并且开放源代码.你只要将鼠标(指针)从一台计算机的屏幕边缘移出到另一个屏幕就行 了.甚至可以共享你的剪贴板.你所需要的仅仅是一个网络连接.Synergy是跨平台的(可以运行于Windows,Mac OS X和Linux). 下载地址: http://symless.com/download/free/ 我是用Ubuntu作server,win7作client配置synergy 客户端: win7的client比较好配

树莓派上启动nfs server

1. nfs 是什么 (略)http://vbird.dic.ksu.edu.tw/linux_server/linux_redhat9/0330nfs.php 2. 安装 nfs-kernel-server 和 rpcbind(替代portmap), 并启动rpcbind和nfs-kernel-server服务. apt-get install nfs-common nfs-kernel-server sudo apt-get install portmap [email protected]

Setting Up An NFS Server And Client On OpenSUSE 12.2

1 Preliminary Note I'm using two OpenSUSE systems here: NFS Server: server.example.com, IP address: 192.168.0.100 NFS Client: client.example.com, IP address: 192.168.0.101 2 Installing NFS server: On the NFS server we run: zypper install nfs-kernel-s

openSuSE DNS SERVER CONFIG

system:openSuSE 12.3(much better and frendly than the 12.1 in network config)1,network config,attention the Domain Name,site is the zone name,linux-johv is mac name2,dns config by yast2a)NS Records of 211.168.192.in-addr.arpa and site.test.com are sa

Ubuntu NFS 安装与配置

Ubuntu NFS 安装与配置 一.NFS安装 $ sudo apt-get install nfs-kernel-server nfs-common portmap二.NFS配置    2.1 配置/etc/exports文件    $ sudo vim /etc/exports在文件最后加入如下内容:{{      /rootnfs *(rw,sync,no_root_squash)}}       注:nfs允许挂载的目录及权限在文件/etc/exports中进行了定义.其中:/root

【翻译自mos文章】当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误

当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误 翻译自mos文章:When NFS Server Is Down, Oracle Server Freezes With No Errors In Alert Log File (文档 ID 1316251.1) 适用于: Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later   [Release: 10.2 and later

NFS server 搭建

一.NFS server 主要用户linux与unix间的文件共享服务器 1.NFS又名网络文件协议:专门用来让linux或unix间进行文件共享 2.NFS是基于RPC协议之一,由多个进程共同构成 3.客户端与服务器端同时得使用Rpc协议 4.RPC=>开启端口不固定,大于1024 二.安装NFS Serve 1.首先需要安装RPC包 一般名为rpcbind软件包 2.安装NFS包 NFS包名==>nfs-utils ==>需要先启动exportfs[rpcbind],再启动NFS 三