Original URL:
http://blog.csdn.net/xiaoxinyu316/article/details/40075637
1. Create Linux Server for NFS
2.linux Mounted Linux NFS
3.windows NFS Tools/raw materials for Mount Linux
Mount statement: Mount-t NFS 192.168.0.10:/home/share/mnt
To suppress a mount statement: umount/mnt
Linux Win7 Network virtual machine method/step 1
Create the NFS server for Linux and choose the Service software for your operating system :
Ubuntu operating system: #apt-get Install Nfs-kernel-server
Centos/redhat Operating system: #yum install Nfs-utils rpcbind 2
Select the file system you want to mount, for example:/home/user/share--(mkdir share)
#vi/etc/exports
#在里面添加:
The #Ubuntu operating system is:
/home/user/share 192.168.1.* (rw,sync)
#上面的192.168.1.* can also be other network segments ( and your same network segment )
#选择合适的操作系统指令
The #centos/redhat operating system is:
/home/User/share * (rw,sync)
3
Restart Service
Ubuntu Operating system:
#/etc/init.d/nfs-kernel-server Restart
-----Please select the appropriate operating system directive----
Centos/redhat Operating System:
# Service NFS Restart 4
You can view your NFS service status by command:
$netstat-lt
A statement like the following second article shows that your NFS service configuration was successful
TCP 0 0 *:54912 *:* LISTEN
TCP 0 0 *:nfs *:* LISTEN
TCP 0 0 *:40004 *:* LISTEN
Test your file system:
Here assume that your NFS service Linux host IP is: 192.168.1.10
$sudo mount-t nfs-o tcp,nolock 192.168.1.10:home/user/share/mnt
or $ sudo mount-t NFS 192.168.1.10:/home/user/share/mnt
If you don't get an error message, your NFS server has been built up 5
WINDWOS Mount Linux Host NFS
To start the WinDOS NFS Client service:
1. Open Control Panel-> program-> turn Windows features on or off->NFS client
Check Client for NFS, that is, to turn on Windows NFS Client service.
2.win+r->cmd
Mount 192.168.1.10:/home/user/share X:
Successful mount, open my brain, you can see in your network location X: Disk
Explain:
Mount, is the command
192.168.1.10 your Linux host IP
/home/share your shared directory
X: You mount the network file disk-note that it may conflict with your other disk, you can change
3. Cancellation of Mount:
Directly in My Computer mouse click to cancel Map Network drive X:
Or: Win+r->cmd
Input: umount X:
(Umount-a cancels all network drives)
Well, enjoy it, wish you success!