我正在尝试使用 SMB 设置 CentOS 7 文件服务器,但遇到了一些问题。我可以从我的 Windows 10 计算机顺利 ping 服务器:
Pinging green-lightning [192.168.1.191] with 32 bytes of data:
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.191:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
但是,当我尝试在文件资源管理器中访问服务器时,出现此错误:
Windows can't find '\\green-lightning'. Check the spelling and try again.
我尝试连接到 IP 地址,但出现相同的错误。我还尝试将我的用户名放在服务器防火墙的公共区域中,然后重新启动 SMB 服务。
使用 TCPing 检查服务器上的 445 端口是否打开,结果显示端口是打开的:
Probing 192.168.1.191:445/tcp - Port is open - time=8.373ms
Probing 192.168.1.191:445/tcp - Port is open - time=8.301ms
Probing 192.168.1.191:445/tcp - Port is open - time=7.904ms
Probing 192.168.1.191:445/tcp - Port is open - time=7.636ms
Ping statistics for 192.168.1.191:445
4 probes sent.
4 successful, 0 failed. (0.00% fail)
Approximate trip times in milli-seconds:
Minimum = 7.636ms, Maximum = 8.373ms, Average = 8.054ms
TCP 端口 139 也已打开。
我显然在这里做错了什么;它是什么?
答案1
只是检查一下;您正在使用 SMBv1 吗?Windows 10 禁用了 SMBv1 - 因此请尝试从“打开或关闭 Windows 功能”->“SMB 1.0/CIFS 文件共享支持”启用它