Linux--nfs Server

Source: Internet
Author: User

     NFS, which is a shorthand for the network File system,Network File System。 The network file system is one of the file systems supported by FreeBSD, also known as NFS. NFS allows a system to share directories and files with others on the network. By using NFS, users and programs can access files on the remote system as if they were accessing local files.

 

1. rpm-qa|grep NFS Rpm-qa|grep rpcbind Check that NFS and Rpcbind software is installed on Linux. If not, install it.
650) this.width=650; "alt=" Picture "src=" http://b390.photo.store.qq.com/psb?/V10HoZq923s0qn/ Weryjtcacevyboqu749wpbdnqx3gwn.7sp0aalvnjl4!/b/diqdfeircqaa&bo=xgfraaaaaaadacs! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:350px;height:81px; "/>

650) this.width=650; "alt=" Picture "src=" http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/ ehno5djwerz6ax5uskobuhf.lkfuatujqe9hsdgf*6c!/b/dd8nq.kvigaa&bo=aaeoaaaaaaadagq! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:360px;height:40px; "/>

2.Service NFS Start service Rpcbind start Turn on NFS and Rpcbind services.
650) this.width=650; "alt=" Picture "src=" Http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/Y. kfzq1ooeedjej3mxnicssqsyiq4zrzxnzdahrpx4w!/b/dbqiqokrigaa&bo=vgecaaaaaaadag4! "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:342px;height:28px; "/>

650) this.width=650; "alt=" Picture "src=" http://b390.photo.store.qq.com/psb?/v10hozq923s0qn/tof7s.ni278qbjzk8f1r6d* 4qo0e7p6ddwg.0j41jqq!/b/docsg.iqcqaa&bo=tgekaaaaaaadaly! "style=" margin:0px;padding:0px;border-width:0px; border-style:none;vertical-align:top;width:438px;height:36px; "/>

3. mkdir/share chmod 777/share Create and modify a directory permission to set the server's shared directory.
650) this.width=650; "alt=" Picture "src=" http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/ c9k1mlfozhcudauvy4zmz3krrvwrhgpkp68wetwn4*k!/b/dnro5epciqaa&bo=xwekaaaaaaadaf8! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:351px;height:36px; "/>

4. vim/etc/exports Modify the configuration file.
650) this.width=650; "alt=" Picture "src=" http://b391.photo.store.qq.com/psb?/V10HoZq923s0qn/ l6ueylswwx5losyeckrqwuw5df6lw1hmrdm7oytqfp4!/b/dobyeumdewaa&bo=kaezaaaaaaadabu! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:296px;height:25px; "/>

5. Press Modify. (The Scarlet Letter is a comment)
650) this.width=650; "alt=" Picture "src=" http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/ ska4wqebyxxglziy5urpmknfmptxqvkaee*zly4bio8!/b/dlkg5epriqaa&bo=qwgtaaaaaaadabw! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:427px;height:147px; "/>

6. Exportfs-av Make the configuration file effective
650) this.width=650; "alt=" Picture "src=" http://b390.photo.store.qq.com/psb?/V10HoZq923s0qn/ walzkahq7.gh7hbn1r5b2naulqh88vuk1qciz7pgtk4!/b/dlrsfoitcqaa&bo=kgi4aaaaaaadadu! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:554px;height:56px; "/>

7.Service NFS Restart Restart NFS Service
650) this.width=650; "alt=" Picture "src=" http://b392.photo.store.qq.com/psb?/v10hozq923s0qn/x3qtdvp* wd73eco28sde4ekmmdhqxicjrzzkesolvdw!/b/dbqiqokrigaa&bo=vgecaaaaaaadag4! "style=" margin:0px;padding:0px; border-width:0px;border-style:none;vertical-align:top;width:342px;height:28px; "/>

8.showmount-e 172.16.109.86 (- e is IP after) To view the directories shared on the NFS service. (It's best to test on other Linux)
650) this.width=650; "alt=" Picture "src=" http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/ Lrusxjowcbfjqszyndhpe1z6jigdwnn.outhyuxxqgq!/b/dbgosekxigaa&bo=ewe1aaaaaaadago! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:379px;height:53px; "/>

9.showmount-t NFS 172.16.109.86:/share Mount the shared directory on your local Linux.
650) this.width=650; "alt=" Picture "src=" http://b390.photo.store.qq.com/psb?/V10HoZq923s0qn/ kap0ezngbsjhtgbpbuqb7nesz.9dc2wlp4w*5qtgs4g!/b/dpyhfeiucqaa&bo=zqiraqaaaaadagg! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:613px;height:299px; "/>

10.Vim/etc/fstab Set up automatic mounts. such as
650) this.width=650; "alt=" Picture "src=" http://b390.photo.store.qq.com/psb?/V10HoZq923s0qn/ hiawrz6xfcpl8ubq4mlkcqbqcao2wumyc0r.ad8etpc!/b/dihzduivcqaa&bo=nak3aaaaaaadaaw! "style=" margin:0px;padding : 0px;border-width:0px;border-style:none;vertical-align:top;width:668px;height:183px; "/>

11. You are done.


This article is from "Heart far, road far." "Blog, be sure to keep this provenance http://yzh123.blog.51cto.com/9014017/1550427

Linux--nfs Server

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.