unixboy 发表于 2013-2-7 13:05:41

Export sunos 5.8 NFS to linux client

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>
#       .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
页: [1]
查看完整版本: Export sunos 5.8 NFS to linux client