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. if you want to mount a linux File System through nfs in windows, you must enable the nfs function.
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 starting with "/" must be prefixed with ", for example," c drive-fstype = cifs, username = admini: // 172.16.23.2: c \ $.
5: view the Mount directory.
Iii. samba Service
The samba service is used for file sharing between Linux and Windows systems. It was first used by linux to imitate the windows protocol. Generally, linux clients are used to connect to windows shared files.
Samba port numbers: 139 and 445
Configuration steps:
1. Install the samba service samba-server and client samba-client packages.
2: Set the Linux shared file/etc/samba/smb. conf in the configuration file.
3: samba supports anonymous logon and user logon. Linux is used as a client to connect to windows by sharing files:
A. smbclient-L 172.16.24.235 scan shared files on windows.
B. smbclinet-U administrator // 172.154.24.12/share/mnt mount the file system,
C. mount-o username = administrator, password = 123 // 172.16.12.2/share/mnt