阅 读 文 章

nfs做server和做client的用法,我都测试过,没有问题

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(南非蜘蛛) | 时间:2007-05-27 | 浏览:人次 ]


[这个贴子最后由南非蜘蛛在 2002/12/17 07:30pm 编辑]

nfs的用法,因为我经常用,所有就总结出来了,希望对你有帮助

freebsd和solaris的我都用过,互相mount和share都没有问题,linux我没有用过,谁用过就贴出来吧


作者:南非蜘蛛 zhedou@sohu.com 
个人主页:http://www.douzhe.com
转载请保留作者信息

(一)solaris


做server

1:基本运行程序是/etc/init.d/rpc和/etc/init.d/nfs.server

启动服务
/etc/rc3.d/S15nfs.server start

S15nfs.server包含了rpc和nfs.server,还有日志等一些其它有用的程序.建议用S15nfs.server启动nfs的server端
 
要是想每次从起后都运行,保证S15nfs.server在/etc/rc3.d目录下

2:共享目录
vi /etc/dfs/dfstab文件中有共享条目,这些共享目录会在守护进程启动时自动共享。 
这些进程在系统进入运行级别2时自动运行。 
挂接远程网络文件系统  
# share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
例如:share -F nfs -o ro=202.108.42.90:202.108.42.91  /home2 
     share -F nfs -o ro=@202.108.42.0/24  /home2 

-o specific_options
       The specific_options are used to control access of the
       shared  resource.   (See   share_nfs(1M)  for  the NFS
       specific options.) They may be any of the following:

       rw    pathname is shared read/write  to  all  clients.
             This is also the default behavior.

       rw=client[]...  或一个网段 rw=@202.108.42.0/24
             pathname is shared read/write only to the listed
             clients. No other systems can access pathname.

       ro    pathname is shared read-only to all clients.

       ro=client[]...  或一个网段 rw=@202.108.42.0/24
             pathname is shared read-only only to the  listed
             clients.   No other systems can access pathname.

-d description
       The -d flag may be used to provide  a  description  of
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 测试 没有 问题 用法 回复 目录 文件 运行 共享 系统

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.