Finally passed the NFS localhost test.
The configuration is simple, the following excerpt from the network, and organized:
1 Installing NFS
#apt-get Install Nfs-kernel-server
#apt-get Install Nfs-common
2 Configuring/etc/exports
Add at the end of text
#/root/nfs_root * (Rw,sync,no_root_squash)
#chmod 777-r/root/nfs_root
You can use SHOWMOUNT-E to see if the current configuration is already in effect
#showmount-E
Export list for medea-ms-7680:
The description has not yet taken effect.
Update configuration with Exportfs-r
#exportfs-R
#showmount-E
Export list for medea-ms-7680:
/root/nfs_root *
3 start
#/etc/init.d/nfs-kernel-server Restart Re-NFS service
Simply put, you can use NFS in 3 steps. You can use localhost for the local mount Test.
The network will generally also configure/etc/hosts.deny and/etc/hosts.allow. The primary is to configure permission control for IP access. But I don't want to configure it, I feel there's nothing important on my PC. is ignored.
Well, my nightmare has begun.
#mount-T NFS Localhost:/root/nfs_root/root/book
The following prompt appears: Mount.nfs:access denied by server while mounting localhost:/root/nfs_root
It took me 3 days to detect. Found no problem with the computer configuration in the company. There will be a problem with the desktop at home.
Search online could not find any reason. Depressed.
Later, I tried reconfiguring/home/medea as a mount point and found incredibly passed.
I'll go to the root directory, Ls-al. Finally found the problem. The original permission of my/root is drwx------root root 4096 2011-09-18 07:43 root
I thought that, after the local mount, it would be another kind of user login. Root access has been a problem.
So:
#chmod 755/root
In an attempt to
#mount-T NFS Localhost:/root/nfs_root/root/book
[Turn]ubuntu11.04 configuration nfs--resolve mount.nfs:access denied issues