NFS File Sharing service build (Ubuntu-centos) (2 minutes to fix) 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0063.gif "alt=" j_0063. GIF "/>
nfs-File Sharing Server Setup
Use intranet IP
Nfs-server: Intranet IP 10.47.72.177 (Ubuntu 14)
Nfs-client: Intranet IP 10.132.10.63 (Centos 6.5)
Nfs-server: (The premise has been updated to the latest source)
Installation: sudo apt-get install Portmap
sudo apt-get install Nfs-kernel-server
Configuration:
sudo vim/etc/exports
Add one line:/var/www/html/wybz/www/uploadfiles2 10.132.10.63 (Rw,sync,no_root_squash)
/var/www/html/wybz/www/uploadfiles2 shared to client 10.132.10.63, with read and write privileges, on the server side
To start the service side:
Sudo/etc/init.d/portmap start
Sudo/etc/init.d/nfs-kernel-server start
Nfs-client: (The premise has been updated to the latest source)
The client tests are first hung on:
SHOWMOUNT-E 10.47.72.177
If the NFS server information is displayed, the mount can be successfully mounted.
Client Mount Configuration
sudo mount-t NFS 10.47.72.177:/var/www/html/wybz/www/uploadfiles2/home/yinchaojava/mnt/uploads-o proto=tcp Do not use UDP FTP, stabilize some
To this client hangs on successfully.
Test:
Create a file or folder in the client/home/yinchaojava/mnt/uploads, and discover that the server is also generated and deleted on both sides, indicating success.
Client lifted: Umount/home/yinchaojava/mnt/uploads
This article is from the "re-learn Java" blog, please be sure to keep this source http://3131854.blog.51cto.com/3121854/1789422
NFS File Sharing service build (Ubuntu-centos)