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