NFS配置的具体代码

网络 网络管理
文章摘要:下面我们来对NFS配置的具体内容进行以下分析。文中列举了具体的代码,希望对大家有所帮助。

NFS是文件系统,在网络中起到了很重要的作用。下面我们就来介绍一下NFS配置的具体代码。希望文中介绍的内容面,能让大家对NFS文件系统(nfs file system )的配置有所了解。

相应NFS配置文件

[1] /etc/dfs/dfstab;(nfs server)

例如:

  1. # vi /etc/dfs/dfstab  
  2. share  -F nfs  -o rw=engineering -d "home dirs"  /export/home  
  3. share  -F nfs  -o ro -d "app dirs"  /export/app  
  4. share  -F nfs  -o ro -d "man dirs"  /usr/share/man  
  5.  
  6. [2] /etc/vfstab;(nfs client)  
  7.  
  8. # vi /etc/vfstab  
  9. i2:/export/home - /export/home nfs - yes soft,bg  
  10. i2:/export/app - /export/app nfs - yes soft,bg  
  11. i2:/usr/share/man - /usr/share/man nfs - yes soft,bg  
  12. rw|ro,bg|fg, soft|hard, intr|nointr,suid|nosuid, timeo=n 
  13. default=11x.1sec, retry=n 1k. 

相应系统进程

  1. [1] mountd  
  2. [2] nfsd  
  3. [3] statd  
  4. [4] lockd 

NFS配置相关命令

[1] share,

例如:

  1. # share -F nfs /export/home  
  2. # share -F nfs -o ro /usr/share/man  
  3. [2] unshare,  
  4. [3] shareall,  
  5. [4] unshareall;  
  6. [5] mount 

例如:

  1. # mount nfsserver:/export/home /export/home  
  2. # mount nfsserver:/export/app /export/app  
  3. # mount nfsserver:/usr/share/man /usr/share/man  
  4. [6] umount,  
  5. [7] mountall,  
  6. [8] umountall,  
  7. [9] dfshares host,  
  8. [10] dfmounts  
  9. [11] /etc/init.d/nfs.server;   /etc/init.d/nfs.client 

例如:

  1. # /etc/init.d/nfs.server start 

 

责任编辑:佟健 来源: 网络整理
相关推荐

2010-08-04 12:01:23

NFS安装配置

2010-08-05 16:30:13

Linux NFS

2010-06-29 15:32:14

配置SNMP组

2010-03-25 19:23:51

Nginx配置虚拟主机

2010-08-03 17:23:41

NFS服务

2010-08-02 17:20:12

nfs启动Linux

2010-08-05 10:18:19

Solaris nfs

2010-08-03 17:26:13

NFS端口

2010-08-04 11:37:44

PHP NFS

2010-07-27 11:09:43

设置NFS

2010-08-04 14:45:18

NFS挂载脚本

2010-08-03 17:32:54

Linux NFS

2010-08-02 17:16:10

Fedora10 NF

2009-09-17 13:27:30

SolarisNFSNIS

2010-08-05 10:00:18

NFS服务挂起

2010-07-28 15:10:21

NFS配置

2010-08-06 13:42:21

CentOSNFS

2010-08-03 13:54:00

2010-08-04 17:18:09

nfs文件系统

2010-08-04 15:01:00

点赞
收藏

51CTO技术栈公众号