Methods of Linux Remote mount directory

Source: Internet
Author: User

Edit configuration file:/etc/exports
To add a file authorization list:
/home/www.111cn.net/data/127.0.0.1 (rw,no_root_squash,sync,anonuid=1525,anongid=1525)

To start a service-side service:
NFS Services
Service NFS Restart
"If the service command is not found, it may be that there is no/sbin in the path, add it to the environment variable file."
"Export path= $PATH:/sbin"
Portmap Service
Service Portmap Start
Client:
To execute a mount command:
Mount-t NFS Xxx:/data/test test/
If present: Mount:mount to NFS server ' p470-1 ' failed:rpc error:program not registered
Is that service-side services are not started, restart the service.

Mount-t NFS 127.0.0.1:/tanyuanyi./uploadfile here do not need root@127.0.0.1, permissions are configured on the server side. "But the above command failed," explained the following, and must have a full path. "
Linux must remember to enter the full path when mounting and unloading. "Otherwise, when the mount, obviously have permission, will report Mount * * failed, reason given by Server:permission denied"

When uninstalling, use Umount-v plus the client's path

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.