mount_smbfs无法挂载samba服务器,报错提示“operation time out”
生活随笔
收集整理的這篇文章主要介紹了
mount_smbfs无法挂载samba服务器,报错提示“operation time out”
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述:
最近基于Redhat 7.5 搭建Samba服務器,使用賬號密碼訪問,一直訪問不了提示operation time out,糾結了兩天,終于搞定,特此記錄下
解決方案:
一直猜測是防火墻的問題,但是沒有找到關閉防火墻的方法。
原來Redhat 7或者CentOS 7后不使用iptables管理防火墻(可以單獨安裝iptables-server包管理),默認管理工具使用firewalld進行管理
firewalld命令如下:
#查看防火墻狀態 [root@localhost Desktop]$ firewall-cmd --state running #關閉防火墻 [root@localhost ~]# service firewalld stop Redirecting to /bin/systemctl stop firewalld.service #再次查看防火墻狀態 [root@localhost ~]# firewall-cmd --state not running以上關閉防火墻只是臨時關閉,重啟后防火墻還會打開
#查看防火墻是否開機啟動 [root@localhost ~]# systemctl is-enabled firewalld enabled #永久關閉防火墻 [root@localhost ~]# systemctl disable firewalld rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' rm '/etc/systemd/system/basic.target.wants/firewalld.service' #再次查看防火墻是否開機啟動 [root@localhost ~]# systemctl is-enabled firewalld disabled針對firewalld 其他相關命令,此處不再記錄,用到再查資料吧。
總結
以上是生活随笔為你收集整理的mount_smbfs无法挂载samba服务器,报错提示“operation time out”的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 睡眠时的局部目标记忆再激活
- 下一篇: 英语和数学不好,能学编程吗?