Samba server connection timeout

1.添加samba服务到防火墙策略中

 firewall-cmd --add-service samba --permanent

2. Restart the firewall

firewall-cmd --reload

3. Check whether the samba service is added to the firewall:

firewall-cmd --list-all|grep samba

4. Close selinux

vim /etc/sysconfig/selinux

Modify only

SELINUX=disabled

 

5. 

setenforce 0

6.

getenforce

7.

systemctl start smb
systemctl enable smb
systemctl restart smb
systemctl status smb

8. Success

 

Published 115 original articles · Like 58 · Visits 160,000+

Guess you like

Origin blog.csdn.net/luChenH/article/details/103145713