Simple nfs settings in linux

Source: Internet
Author: User
Simple settings of nfs in linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Two servers: server192.168.53.55client192.168.53.57

First, check whether the nfs software package is installed on the two machines.

Rpm-qa | grep portmap
Rpm-qa | grep nfs-utils

Generally, the system disk has a corresponding software package.

1. Create a shared directory/guo client under the server to create the loaded directory/guotest

2. Create the/etc/exports file on the server and add the text

/Guo 192.168.53.57 (rw, no_root_squash, sync) can view detailed information to understand the corresponding meaning.

3. Start the Server Service

/Etc/init. d/portmap start
/Etc/init. d/nfs start
/Etc/init. d/nfslock start

4. Check Configuration

Showmount-e localhost: the configuration information is displayed.

5. Start portmap on the client

6. Run the following command to mount the file to a local directory.

Showmount-e 192.168.53.55 check the server's Mount directory

Mount-t nfs 192.168.53.55:/guo/guotest

7. Run the df or mount command to view the mounted file system.

8. Write the file to the/guotest directory on the client side and you can see the file normally on the server side ls.

This is a simple configuration and does not involve detailed descriptions and system optimization.

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.