Install Server for NFS on CentOS 6.5 and test

Source: Internet
Author: User

Installing NFS servers on Linux and setting up client access


Server side: 192.168.10.11

Client: 192.168.10.20


Server-side && client


Yum-y Install Rpcbind nfs-utils (Linux 6.0 or later)

Yum-y Install Portmap nfs-utils (version 5.0)


Server-side

Echo-e "/cxw\t192.168.10.0/24 (rw,sync,all_squash)" >>/etc/exports

Start the service

/etc/init.d/rpcbind start

/etc/init.d/nfs start

Change to boot auto start

Chkconfig Rpcbind on

Echo-e "/etc/init.d/nfs\tstart" >>/etc/rc.local

Change shared Folders

Mkdir-r/cxw

Chown-r Nfsnobody:nfsnobody/cxw

Make configuration effective

Exportfs-r



Client


Chkconfig NFS On

Chkconfig Rpcbind on


Mount-t NFS 192.168.10.11:/cxw/tmp


SHOWMOUNT-E 192.168.10.11

To test whether the client has write permissions, create folder permissions


Install Server for NFS on CentOS 6.5 and test

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.