Linux nfs mounting configuration and linux nfs mounting configuration

Source: Internet
Author: User

Linux nfs mounting configuration and linux nfs mounting configuration

Nfs mounting is not described here. Follow the steps in sequence. A picture has a truth.


Server Configuration: (ip 192.168.88.85)

1. Check the software nfs package installation

Rpm-qa | grep nfs

2. Check whether rpcbind is installed

3. If installation is not completed:

4. Check whether exports files exist.

Cat/etc/exports

If the file exports is not manually created under etc, the content is: folder directory to be mounted

You do not have to manually create files. The content added in is
/Opt/tp-manager/data is the permission of the Directory * (rw, no_root_squash) to be mounted (... self-check)

Server configuration complete


Client: the nfs jar package must be consistent with the one or two operations on the server.
3. Check whether the server is mounted. (If NO mounting is displayed, check the precautions)
Showmount-e 192.168.88.15


4. Client mount command: mount-t nfs 192.168.88.15:/opt/tp-manager/data/opt/tp-worker/data


/Opt/tp-manager/data is the path from the server path to the client:/opt/tp-worker/data

Mount completed:

Note:
The Operation Command is required for the server to modify the exports file.

Exportfs-rv (remount)

Service rpcbind restart

Service nfs restart

Service iptables stop (mandatory for strong Fire Prevention)

If the client wants to cancel mounting: umount-f/opt/tp-worker/data






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.