CIFS:
In Microsoft, a mechanism is used for network neighbor sharing. In Linux, you can also mount the shared file directory by running the Mount-t cifs... command.
NFS:
The file sharing mode between Linux systems is based on the RPC server mode. The Mount-t nfs command is detailed as follows:
The services used by the software rpcbind and nfs-utils to build an NFS server include service rpcbind NFS nfslock. The configuration file is/etc/exports. You can set the directory to be shared. Then, you can bind the rpc port to/etc/sysconfig/NFS to fix the port of the NFS service and then set the firewall traffic (including 111,2049 and bound ports ), smooth external service provision.
Samba:
Samba is developed based on the NetBIOS protocol. At first, Microsoft's network architecture adopted Netbios for communication, so in order to be able to join the Windows system, Linux developed the samba architecture on NETBIOS for implementation. The command is also mount-t cifs. The details are as follows:
To build a Samba server, you must use the software Samba and samba-client. The services used include SMB and nmb. The configuration file is in/etc/samba/smb. conf, you can set various permission file directories, and then port 137,138,139,445. By activating the firewall and so on, after starting the service, you can implement Linux and Windows file servers that can be shared at the same time.
The above three mechanisms are commonly used for file sharing within the lan. The functions are true and good, and everything works on the network. FTP servers are commonly used in the Internet.
Build Server File Sharing CIFS, NFS, Samba