Three-linux sync with Windows via NFS files __linux

Source: Internet
Author: User

Linux synchronizes with Windows via NFS files

Note: This is a description of Windows as NFS server-side, Linux as an NFS client-configured file synchronization.

Purpose: The common development of WS is to modify the code under Windo and then use WINSCP to test the code on Linux.

After configuring NFS, you can test your project code directly on the Linux server after it has been modified by this machine, eliminating the need for WINSCP files to

Linux steps to improve development efficiency.

NFS (Network filesystem Network File system):

Allow different machines, different OS to share directories and files on the network.

With NFS, users and programs can access files on the remote system as they would access local files.

1. Download the Windows version of NFS server.

Local Download Address: Http://192.168.0.2/downloads/tools/nfsaxe.exe

Remote Download page: http://cn.handyarchive.com/Internet/Utilities/19719-nfsAxe-Windows-NFS-Client-and-NFS-Server.html

Click the default option to install it directly.

2. Configure Server for NFS under Windows.

Then open the->"Start menu-> program->nfsaxe v3.4->nfs-server

· Server State Select Resume

· Show Icon on System taskbar check box click

As shown in the figure:


· Then click Export Pop-up property page NFS server-settings

· Click on the button Add directory-> to select your directory as NFS synchronized

· Then click Add User Access to the right of the Property page NFS User access set to:

Host

Userid

GroupID

Access

*

*

*

r/w


Then, in the property page name conversion, set:

· Shift symbol:!

· Mode:none

· (* Note: it must be selected none, otherwise the case of the Sync folder may change.)

As shown in the figure:


3. Configure Linux as an NFS client

Start the NFS server command

# service Portmap Start # Service NFS Start

Set the NFS to start automatically at the appropriate run level, as needed:

# chkconfig--level 235 portmap on # chkconfig--level 235 NFS on

Set up folders to sync with NFS server

For example: Set Linux in the/var/alteil2/admin/and

I:/work/alteil/code/ver2/admindocs Sync for Windows

# mount-t NFS 192.168.0.118:/i/work/alteil/code/ver2/admindocs/var/alteil2/admin/

(* Note: The Windows path format under Linux is modified to:/i/work/this form)

Confirm in Windows after successful synchronization

Click on the button in Nfs-server to show mounts

As shown in the figure:


This means that the/var/alteil2/admin/in Linux and

Windows is I:/work/alteil/code/ver2/admindocs synchronized.

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.