Samba Configuration:
Install samba and related dependencies: sudo yum install samba smbclient-y
Edit the configuration file as needed: sudo gedit/etc/samba/smb. conf. Keep the default value without special requirements.
Disable the firewall: sudo gedit/etc/selinux/config, change SELINUX = enforcing to SELINUX = disable, and restart
Create a samba account: sudo useradd admin
Add an account to samba and create a samba verification password: sudo smbpasswd-a admin. Enter the password twice.
Enable samba-related services: sudo systemctl enable smb. service nmb. service
Check whether systemctl is enabled: enabled smb. service nmb. service, enabled is displayed.
Find a windows computer in the LAN, win + R, and enter \ x. x. In the displayed dialog box, enter admin and your own password.
To have more functions, study the/etc/samba/smb. conf file.
Vsftpd Configuration:
Install vsftpd and related dependencies: sudo yum install vsftpd-y
Edit the configuration file sudo gedit/etc/vsftpd. conf as needed. Keep it by default without special requirements.
Disable the firewall: sudo gedit/etc/selinux/config, change SELINUX = enforcing to SELINUX = disable, and restart
Enable samba-related services: sudo systemctl enable vsftpd. service
Check whether systemctl is enabled: enabled vsftpd. service. enabled is displayed.
Find a computer in the LAN, enter your server address: ftp://x.x.x.x in the browser, enter: ftp: // www.2cto.com in the local test
If the access permission problem occurs, change the permission: sudo chmod-R 755/var/ftp
NFS configuration:
Install nfs and related dependencies: sudo yum install nfs-utils *-y
Edit the configuration file sudo gedit/etc/exports as needed. If the shared directory is/home and you want to mount the file to read and write the file, add a line to it: /home * (sync, rw), * indicates all IP addresses. If an IP address is specified for access, you can directly replace it with the specified IP address; if you want to read/home only, you can change rw to ro. For detailed parameters, see the manual.
Enable nfs-related services: sudo systemctl enable nfs-server.service
Nfs-server check enabled: systemctl is-enabled nfs-server.service, displays enabled
When other machines are remotely loaded, only mount x. x:/home/mnt is required. x. x is the ip address of the local machine, and other operations are normal.
From int64Ago's column