六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 77|回复: 0

Export sunos 5.8 NFS to linux client

[复制链接]

升级  0%

156

主题

156

主题

156

主题

进士

Rank: 4

积分
500
 楼主| 发表于 2013-1-16 16:48:48 | 显示全部楼层 |阅读模式
1. export dir:
root@nwtgz # cat /etc/dfs/dfstab

#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command '/etc/init.d/nfs.server start' to run the NFS
#       daemon processes and the share commands, after adding the very
#       first entry to this file.
#
#       share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2

share -d "smsweb" -o rw /usr/local/tomcat/jakarta-tomcat-4.1.31/webapps/SMS

2. start up:                           
root@nwtgz # /etc/init.d/nfs.server start

3. check:

root@nwtgz # showmount -e 127.0.0.1
export list for 127.0.0.1:
/usr/local/tomcat/jakarta-tomcat-4.1.31/webapps/SMS (everyone)

关于Linux的NFS与Solaris不同点:

1. Solaris的目录共享设置文件是/etc/dfs/dfstab, 而RadHat Linux共享目录设置文件是/etc/exports
2. Solaris开机自动mount设置文件是/etc/vfstab, 而RadHat Linux开机自动mount设置文件是/etc/fstab
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表