In linux, how does one share files ?, Linux shared files

Source: Internet
Author: User

In linux, how does one share files ?, Linux shared files

It is easy to share files under the window. You only need to right-click the shared folder and assign permissions. win7 can also achieve multi-user sharing. The specific method is Baidu.

But we want to share files between linux systems, which requires the NFS service.

1. Check whether nfs is installed in linux.

The system has been installed by default.

2. Start the nfs server

3. view the running status of the nfs server

4. Set nfs to start automatically. Otherwise, it will be troublesome to start the service every time you share files.

5. The next step is to share files, such as files under the shared/home/share/directory.

6. Write the name of the machine to be shared

# Vi/etc/exports

Enter the following content:

/Home/share/the folder to be shared is followed by an ip address + CIDR block. The brackets indicate the client's permission to operate the files in the directory, and r indicate readable, w indicates writable, x indicates executable

7. Restart the portmap and nfs services.

8. view the NFS sharing status and client connection information (Note: it is available only after the client is connected)

9. Mount the shared directory on the NFS server on the client.

Mount NFS server ip Address: local directory of the shared directory

I have already mounted

10. Check whether the shared mounting is successful.

11. Check whether shared files can be viewed.

Shared successfully

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.