Linux--imax Development Environment--NFS

Source: Internet
Author: User

Server-side NFS

1 installation:sudo apt-get install nfs-kernerl-server

2 Create a share:

$sudo Vi/etc/exports

Last Plus:/home/xbz/work * (Rw,sync,no_root-squash)

or /home/xbz/work 192.168.1.* (rw,sync,no_root_squash)

The above indicates that access to the 192.168.1.* network segment is allowed

3

Create the shared file above

Mkdir/home/xbz/work

chmod 777-r/home/xbz/work


4 Restart

/etc/init.d/nfs-kernel-serverrestart// has a space.


5 Local test NSF

mount-t NFS 192.168.1.107:/home/xbz/work/mnt// Note space

107 is a local IP address /home/xbz/work is a shared folder of the above settings






client -side NFS (imax6-linux -side)


$ping 192.168.1.107

$mount-O nolock 192.168.1.107:/home/xbz/work/mnt

$CD/mnt

$ls



Reference

http://my.oschina.net/neo600/blog/62078

http://www.oschina.net/question/17_633(Learn more about how vi/etc/exports is added)

Linux--imax Development Environment--NFS

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.