1. 下載samba
yum -y samba
2. 設置配置文件
vim /etc/samba/smb.conf
[share]
comment = test
browseable = yes
path = /home/share
available = yes
public= no
valid users = test
writable = yes
3. 關閉防火牆
systemctl status firewalld.service
systemctl stop firewalld.service
4.重啓samba
systemctl start smb nmb
systemctl status smb nmb
5.客戶端連接即可