我正在尝试使用 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 也打开了。
我显然在这里做错了什么;它是什么?
只是检查; 你在做SMBv1吗?在 Windows 10 中,SMBv1 被禁用 - 因此请尝试从“打开或关闭 Windows 功能”->“SMB 1.0/CIFS 文件共享支持”启用它