What can be the reasons of connection refused errors?
What can be the reasons of connection refused errors?
There could be many reasons, but the most common are:
-
The port is not open on the destination machine.
-
The port is open on the destination machine, but its backlog of pending connections is full.
-
A firewall between the client and server is blocking access (also check local firewalls).
After checking for firewalls and that the port is open, use telnet to connect to the ip/port to test connectivity. This removes any potential issues from your application.
ANOMALY: meaningless REX prefix used
telnet报错, ANOMALY: meaningless REX prefix used
北信源内网安全管理系统
经排查发现是安装的北信源搞的鬼(网上显示还有其他软件也会导致这个问题)。但是公司的系统必须用。所以解决方式如下:
1. 通过排查发现,cmd.exe引用了如下四个dll文件,通过命令dumpbin就可以看到:
dumpbin /dependents cmd.exe
2. 比较这四个文件的大小,ADVAPI32.DLL,USER32.DLL, SHELL32.DLL, MPR.DLL.就和那些没有问题的系统的这些文件比较
C:\Windows\System32\advapi32.dll
C:\Windows\System32\user32.dll
C:\Windows\System32\shell32.dll
C:\Windows\System32\mpr.dll
3. 通常情况下,你需要系统最高权限才能替换这些文件,但是大多数情况下未必有。所以将这些文件重命名一下,放入c:\Windows\System32目录下面。比如,将其名字后面加1
4. 重启系统,在f8进入带命令行的安全模式。在该模式下,使用regsvr32命令重新注册这些dll文件:
regsvr32 ADVAPI321.DLL
regsvr32 USER321.DLL
regsvr32 SHELL321.DLL
regsvr32 MPR1.DLL
然后反注册原来的dll文件
regsvr32 /u ADVAPI32.DLL
regsvr32 /u USER32.DLL
regsvr32 /u SHELL32.DLL
regsvr32 /u MPR.DLL
5. 重启系统。解决问题。
备注:
1. 其实在C:\Windows\SysWOW64下也有一个cmd.exe,将系统默认cmd换成这个路径下的cmd也能解决问题。
2. 如果知道怎么改权限,能够直接替换这些位置的文件;或者使用双系统替换文件,也可以解决这个问题。
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2020-03-28 Why can two different enum enumeration-constants have the same integer value?
2019-03-28 Singleton Pattern单例模式
2016-03-28 T4 Templates and the Entity Framework
2016-03-28 Entity Framework Utility .ttinclude File