CENTOS 6.6 NFS Server Setup

Source: Internet
Author: User

Directory

An environment

1.1 System Environment

1.2 Software Environment

1.3 Software version

Two-Installation

2.1 Server Installation

2.2 Server Startup

2.3 Client Installation

2.4 Client Mount

Three-proof


Body

An environment

1.1 System Environment CentOS 6.6 64-bit

[Email protected] ~]# lsb_release-alsb Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:    Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor id:centosdescription: CentOS Release 6.6 (Final) release:6.6codename:final
[Email protected] ~]# cat/proc/version Linux version 2.6.32-504.el6.x86_64 ([email protected]) (GCC version 4.4.7 201203 (Red Hat 4.4.7-11) (GCC)) #1 SMP Wed Oct 04:27:16 UTC 2014

1.2 Software Environment

Not currently

1.3 Software version

Yum installs, usually installs the latest version

Two-Installation

2.1 Installation

Install user root

[email protected] ~]# Yum install nfs-utils

2.2 Start

2.2.1

Start Service/etc/init.d/rpcbind Restart

Start Service/etc/init.d/nfs Restart

[Email protected] ~]#/etc/init.d/rpcbind restartstopping rpcbind: [OK]starting rpcbind: [OK][[email protected] ~  ]#/etc/init.d/nfs restartshutting down NFS daemon: [OK]shutting-NFS mountd: [OK]shutting down NFS quotas: [ Ok]shutting down RPC idmapd: [OK]starting NFS services: [OK]starting NFS quotas: [OK]starting NFS Mountd: [OK] Starting NFS daemon: [OK]starting RPC IDMAPD: [OK]

2.2.2 Configuration

Primary configuration file/etc/exports

Official website Description: Thisfile contains a list of entries, each entry indicates a volume, which is shared and what it is shared. Check The man pages (mans exports) for a complete description of the "the" Setup options for the file, although the Description here'll probably satisfy most people ' s needs.

Translation (rollover): This file lists the directories you want to share, which clients he is authorized to share, and what permissions the client has.

Example:

[email protected] etc]# less EXPORTS/NFSC 10.59.0.0/16 (Rw,sync,acl,no_root_squash)


2.3 Client Installation

The client installation method is the same as server side installation. Save here

2.4 Client Mount

Server-side, client-side build shared directory

Mkdir/nfsdir

Client Side Execution

Mount-t nfs-o rw ServerIP:/nfsdir /nfsdir

Three-proof

Client Side Execution Mount command

You can see if it's mounted successfully.

PostScript: Write bad, in fact, the configuration of this piece has a lot of things ...

Http://www.cnblogs.com/mchina/archive/2013/01/03/2840040.html

Although this article is a bit old, but the whole thing

This is the official website: But English, really do not want to translate this ...

Http://nfs.sourceforge.net/nfs-howto




CENTOS 6.6 NFS Server Setup

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.