前面有讲到过ubuntu的samba配置,既然都有windows版本mount服务了,那么ubuntu版本的mount服务ssh也当然少不了。
如题步骤如下:
1 nfs服务的安装
sudo apt-get install nfs-kernel-server
sudo apt-get install nfs-common portmap
2 编辑/etc/exports 在末行添加/home/cheny *(rw,sync,no_root_squash)
这里填你自己需要共享的路径,本例使用的是/home/cheny
3 修改挂载点属性 chmod 777 /home/cheny
3 修改挂载点属性 chmod 777 /home/cheny
4 重启nfs sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/portmap restart
5 在本机测试
showmount -e如果能列出你的共享路径,那么nfs就配置ok了。