No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Tools 2.0 uMate User Guide 36

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Creating an NFS Server on Linux

Creating an NFS Server on Linux

This section describes how to create an NFS server on Linux. CentOS 7.3 is used as an example.

  1. Run the following command to check whether the NFS service is installed. If no, install the NFS service.

    rpm -qa|grep nfs-utils

    Figure B-1 Checking whether the NFS service is installed

  2. Disable the firewall.

    1. Run the following command to disable the firewall:

      systemctl stop firewalld.service

    2. Run the following command to disable the function of enabling the firewall upon startup:

      systemctl disable firewalld.service

    3. Run the following command to view the firewall status:

      firewall-cmd --state

      If "notrunning" is displayed in the query results, the firewall is disabled. If "running" is displayed in the query results, the firewall is enabled.

  3. Run the following command to start the NFS service:

    service nfs start

  4. Set a shared directory.

    Run the vi /etc/exports command to edit the file.

    Enter /home/bai *(rw,sync,no_root_squash,no_all_squash) in the file.

    Figure B-2 Editing the file
    • /home/bai indicates the directory to be shared.
    • * indicates the IP address range that can be accessed. This value indicates that all IP addresses can be accessed. You can also set this parameter to hostname.
    • rw indicates that you have read and write permission.
    • no_all_squash indicates that the UID and GID (default) of the shared file are retained.
    • no_root_squash indicates that user root has complete management and access permission on the root directory.

  5. Run the following command to restart the NFS service:

    service nfs restart

  6. Run the following command to reactivate the NFS service:

    exportfs -rv

    r indicates restart. v indicates display of the content in the etc/exports configuration file.

  7. Run the following command to view the file shared on the server on the client:

    showmount -e 192.168.2.193

  8. Run the following command on the server to grant write permission to other users:

    chmod 777 -R /home/bai

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000068881

Views: 72401

Downloads: 5020

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next