how to configure nfs on linux

google_real 2002-11-19 01:33:56
i followed the stepsto configure nfs on redhat linux 7.2:

1)make sure the kernel supports both nfs client and nfs server
2)make sure the kernel supports nfs version 3
3)edit the configure file "/etc/exports" as below:

/home/share 192.168.0.7(rw)
4)restart nfs: /etc/init.d/nfs restart.
restart OK.
5)disable firewall:setup->firewall->disable
6)mount:
mount -t nfs 192.168.0.7:/home/share /mnt/nfs

util step 5 everything seemed OK.but when it came to the step 6,
there was not any response from the system. i could not terminate
the "mount" by either "ctl+z" or "ctl+c".any one could give a suggestion?
...全文
31 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
google_real 2002-11-19
  • 打赏
  • 举报
回复
1)
mount from the local machine and there is no response and no message
log.
2)mount from remote machine and got the message:
mount:192.168.0.7:/home/share failed,reason given by server:
permission denied.
and check the /var/log/messages,it said:
/home/share:no export entry
3)i am sure portmap is started.
x86 2002-11-19
  • 打赏
  • 举报
回复
Did you see any log messages in /var/log/messages?
Can you mount it from another machine?
Try start portmap service by running "service portmap start", then start nfs service

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧