RHEL5NFS Server Installation Configuration

Source: Internet
Author: User
RHEL5NFS Server Installation configuration-Linux Enterprise Application-Linux server application information. For more information, see. Network File System (NFS) is a mechanism used to mount the partitions (directories) on the remote host to a local device through the Network, you can operate on the shared partition (directory) of the remote host on the local system just like operating on the local partition. (Similar to windows shared directory)

Install NFS server

[Root @ localhost] # rpm-q nfs-utils

If not, find the nfs-utils installation package from the installation disc of the corresponding Linux operating system.

Example:

[Root @ localhost] # rpm-ivh nfs-utils-1.0.9-24.el5.i386.rpm

NFS service configuration

[Root @ localhost] # vi/etc/exports

Add directories and access permissions that can be accessed by other computers

Example:

/Home 192.168.1. * (rw, sync, no_root_squash)

1./home: directory that allows access from other computers

2. 192.168.1. *: The Client IP address that is allowed to access the Directory

3. Rw: readable and writable

4. Sync: synchronize data to the disk (async: data will be saved in the memory first, rather than directly written to the hard disk)

5. no_root_squash: indicates that the root user of the client has the write permission on the directory.

Start NFS service

1. Run the following command to start the NFS server:

/Etc/init. d/nfs start

2. Run the following command to restart the NFS server:

/Etc/init. d/nfs restart

Use NFS service

Use the mount command to mount the shared directory on the NFS server.

# Mount-t nfs servername:/shared_dir/localdir

Example:
# Mount-t nfs 10.168.1.100:/home/mnt/nfs
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.