NFS function configuration of Ubuntu

Source: Internet
Author: User
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 shared directory in the directory: mkdir/forlinux4.gedit/etc/exp

Environment: Ubuntu 10.04

Steps:

1. sudo apt-get install portmap

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 Fedora 12. Open it in service options.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.