1. 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
2.关闭selinux
vim /etc/selinux/config
设置 SELINUX=disabled;
执行 setenforce 0
3.安装samba
yum -y install samba
4.配置samba
vim /etc/samba/smb.conf
5.创建账户
useradd -s dev
smbpasswd -a dev
6.开启samba服务
systemctl start smb
systemctl start nmb