NFS server in Linux

Source: Internet
Author: User
Article Title: NFS server in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

NFS is a Network File System (NetworkFileSystem) and a network protocol for file sharing between hosts.

Assume that the server ip address is 10.10.10.10 and the client ip address is 10.10.10.11.

1. Configure an instance on the NFS server

# Vi/etc/exports

/Opt/test/10.10.10.10 (async, rw, no_root_squash)

Save and exit wa.

Restart the service:

# Exportfs-rav

# Service portmap restart

# Service nfslock restart

# Service nfs restart

2. Configure an instance on the NFS client

# Vi/etc/fstab

10.10.10.10:/opt/test/home/test nfs rsize = 8192, wsize = 8192, retrans = 5, retry = 1, intr 0 0

// Mount the content in the/opt/test directory on the server to the/home/test directory on the client!

# Umount-a // cancel all mounting

# Mount-a // mount all

# Mount/home/test // mount only the command/opt/test

# Umount/home/test // cancel mounting/home/test

# Df // view the partition status and mount information of the current linux System

3. Mount the windows 2003 shared directory to linux:

Assume that the ip address of the win2003 server is 10.10.10.12.

# Mount-t cifs // 10.10.10.12/test/home/test-o username = administrator

Password:

// Mount files in the shared directory test (shared folder name) of win2003 to/home/test in linux.

// My redhat linux.

Write these for now ~~ These steps are the most commonly used NFS service!

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.