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.客户端连接即可