NFS and SAMBA services for linux services

Source: Internet
Author: User
These types of network file transmission are most suitable for LAN, and FTP 1 is used in the network: NFS service

These types of network file transmission are most suitable for LAN, and FTP is used in the network

I. NFS service

The network file system (nfs) depends on the rpcbind service. The client accesses the rpc of the server through rpc, and nfs requests the port number through rpc, rpc maps the allocated port number to the portmap table and sends the port number to the rpc of the client.

The packages are: nfs-utils rpc package.

Port: The rpc port is 111. the nfs port is 2049.

Configuration steps:

1: The/etc/exports file controls access users and read/write permissions.

2: start rpcbind, service rpcbind start

3: start the nfs service and service nfs start

4: The client can view open files on the server, showmount-e 172.16.0.25

5: rpcinfo: view the open port information of the dependent service.

6: mount nfs on the client, mount 172.16.23.253:/share/mnt

II. autofs automatic file system mounting

Autofs can automatically mount the file system to easily mount the file system and set the timeout time.

Configuration steps:

1: install the service package autofs.

2: configure the/etc/auto. master file and set the automatic Mount directory according to the syntax in the configuration file. for example, the misc Directory

3: Copy the mounting configuration file auto. misc to set the automatic mounting directory.

4: The path that starts with "/" must be prefixed :. For example, mount a windows drive c: // 172.16.23.2: c \ $, \ is an escape symbol.

5: view the Mount directory.

III. samba 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.