Centos6.6 install the nfs Network File System, centos6.6nfs

Source: Internet
Author: User

Centos6.6 install the nfs Network File System, centos6.6nfs

I. Introduction

Most nfs network file systems are used for Intranet file sharing. For example, files uploaded to the cluster are shared and often used in the image part. Of course, when the data volume is large, you need to separate them, as a special interface, it is better to introduce the basic installation environment:

1) The number of CIDR blocks in the same region as the number of CIDR blocks in the same region.

2) nfs-utils-1.2.3

3) rpcbind-0.2.0

 

Ii. Installation

  

yum install -y rpcbind nfs-utils

 

 

Iii. Configuration

Echo "/data 192.168.19.145 (rw)">/etc/exports # specify the directory for running the mounted host and the Permissions

 

4. Start

$ /etc/init.d/rpcbind start$ /etc/init.d/nfslock start$ /etc/init.d/nfs start$ chkconfig rpcbind on$ chkconfig nfslock on$ chkconfig nfs on$ iptables -t filter -A INPUT -s 192.168.19.145 -m state --state NEW -j ACCEPT

 

 

 

# Remember to allow the Firewall

5. Check

$ ps aux|grep nfs$ ps aux|grep rpcbind$ netstat -ntlp

 

 

 

# This Dongdong port has a bunch of ports opened

 

 

Vi. Client Testing

$ Yum install-y nfs-utils # install $ showmount-e 192.168.19.128 # view the shared directory $ mount-t nfs 192.168.19.128:/data/mnt # mount

 

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.