NFS Configuration for Centos 6.X

Source: Internet
Author: User
Tags mkdir
CENTOS6 later version changed the Portmap service for Rpcbind, in the use of NFS this is different from centos5, the following configuration of an NFS system to enable all users within the LAN access to the directory, the directory can be configured as a Yum source, for intranet machine installation software.


First install the NFS kit, which commands the following:

Yum Install nfs-utils.x86_64 (64-bit system)

Yum Install Nfs-utils (32-bit system)

The Portmap service is then installed and Portmap is renamed Rpcbind in CENTOS6

Yum Install Rpcbind (CENTOS6. X

Yum Install Portmap (centos5. X

Mount the disc and copy the file to the directory you want to mount

Mkdir/opt/centos6

Mount/dev/cdrom/media-o Loop

Cp-r/media/*/opt/centos6/

Configuring the NFS service side

Vi/etc/exports

Add to

/OPT/CENTOS6 192.168.0.0/24 (Ro,no_root_squash)

This line indicates that the/OPT/CENTOS6 directory for NFS shared directories, accessible IP address range is 192.168.0.0-192.168.0.254, permission is read-only, when the visitor is the root of the directory with root permissions

Restarting NFS Services

/etc/init.d/rpcbind start

/etc/init.d/nfs start

Add NFS to the Power-on startup entry

Chkconfig NFS On

Client Configuration

See if you can access the NFS service

SHOWMOUNT-E 192.168.0.10

The display is as follows:

Export list for 192.168.0.10:

/OPT/CENTOS6 192.168.0.11

Indicates access, such as inaccessible view of NFS server-side NFS service is enabled, and whether the firewall is allowed to go through.

Mount NFS Directory

Mkdir/opt/centos6

Mount-t NFS 192.168.0.10:/opt/centos6//opt/centos6/

Configure the Power-on mount automatically

Vi/etc/fstab

Add to

192.168.0.10:/OPT/CENTOS6/OPT/CENTOS6 NFS nodev,ro,rsize=32768,wsize=32768 0 0


RHEL6 NFS Firewall settings

NFS is used for services that have portmapper NFS Rquotad nlockmgr mountd

Use command rpcinfo-p to view ports used by NFS

[ROOT@BK/]# Rpcinfo-p
Program vers Proto Port service
100000 4 TCP Portmapper
100000 3 TCP Portmapper
100000 2 TCP Portmapper
100000 4 UDP Portmapper
100000 3 UDP Portmapper
100000 2 UDP Portmapper
100024 1 UDP 53713 status
100024 1 TCP 47753 Status
100011 1 UDP 875 Rquotad
100011 2 UDP 875 Rquotad
100011 1 TCP 875 Rquotad
100011 2 TCP 875 Rquotad
100003 2 TCP 2049 NFS
100003 3 TCP 2049 NFS
100003 4 TCP 2049 NFS
100227 2 TCP 2049 Nfs_acl
100227 3 TCP 2049 Nfs_acl
100003 2 UDP 2049 NFS
100003 3 UDP 2049 NFS
100003 4 UDP 2049 NFS
100227 2 UDP 2049 Nfs_acl
100227 3 UDP

Related Article

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.