Environment: Ubuntu10.04 step: 1. sudoapt-getinstallportmap2.sudoapt-getinstallnfs-kernel-server note: Step 1 I failed to install, after changing the source is still so, finally I search for nfs-kernel-server in the new, installed successfully 3. create a new directory...
Environment: Ubuntu10.04
Steps:
1. sudo apt-get installportmap
2. sudo apt-get install nfs-kernel-server
Note: In step 2, I failed to install the nfs-kernel-server, which is still the case after the source change. Finally, I searched for nfs-kernel-server in the new version. the installation was successful.
3. create a shared directory in the directory: mkdir/forlinux
4. gedit/etc/exprots, add/forlinux 192.168.0. * (rw, sync, no_root_squash)
5. disable the firewall: sudo iptables-F
6. start nfs:
/Etc/init. d/portmap restart
/Etc/init. d/nfs-kernel-server restart
Done.
Next, use local mounting to test whether the connection is successful.
Sudo mount 192.168.0.239:/forlinux/mnt
If it fails, try the following command:
Sudo mount-o nolock 192.168.0.239:/forlinux/mnt
In the/mnt directory, you can see the content in the/forlinux folder.
Stop mounting:
Sudo umount/mnt
TIPS:
Nfs has been installed under fedora12. enable it in service options.
Blog link: http://blog.csdn.net/jdh99, :jdh