Linux service NFS and SAMBA services

  
        

These kinds of network file transfer are most suitable for LAN, FTP in the network

One: NFS service

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

The installed package includes: Nfs-utils rpc package.

Port number: rpc port is 111 nfs port is 2049

Configuration steps: www.dnzg.cn

1:/etc/exports This file controls access User and read and write permissions.

2: Start rpcbind service, service rpcbind start

3: Start nfs service, service nfs start

4: Client view server open file, showmount -e 172.16. 0.25

5: rpcinfo View open port information for dependent services.

6: The client mounts nfs, mount 172.16.23.253: /share /mnt

Second: autofs automatically mounts the file system

autofs automatically mounts the file system It is convenient to mount the file system and set the timeout period.

Configuration steps:

1: Install the service pack autofs.

2: Configuration file /etc/auto.master, set the automount directory according to the syntax in the configuration file, example misc directory

3: Copy the mount configuration file auto.misc One, to set the automount directory.

4: The path beginning with /must be preceded by : . For example, mount the c drive of windows ://172.16.23.2:c\\$ , \\ for the escape symbol.

5: View the mount directory automatically appears.

Three: samba service:

Copyright © Windows knowledge All Rights Reserved