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: