NFS File Sharing service build (Ubuntu-centos)

Source: Internet
Author: User

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)

Related Article

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.