我在尝试在远程系统中运行.exe文件时遇到错误,我不确定如何解决:
C:\Users\Administrator\Desktop\PSTools>PsExec.exe \\172.19.15.50 -u doctor -p doctor "C:\Program Files\AppG\App.exe"
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of
each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress
socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start(Int32 backlog)
at System.Net.Sockets.TcpListener.Start()
at AppG.CLI.TelnetServer.ListenForClients()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
C:\Program Files\AppG\App.exe exited on 172.19.15.50 with error
code -532459699.
C:\Users\Administrator\Desktop\PSTools>
我得到的另一个错误是:
Found 1 matching device [ Vendor ID 0x10EE, Device ID 0x7 ]:
1. Vendor ID: 0x10EE, Device ID: 0x7
WARNING!!!
----------
Your hardware has level sensitive interrupts.
Interrupts
-----------
Found 1 matching device [ Vendor ID 0x10EE, Device ID 0x7 ]:
1. Vendor ID: 0x10EE, Device ID: 0x7
有人知道如何解决这个问题吗?
问题似乎是没有释放绑定的端口。
我可以看到两种可能性:
该程序App.exe
被终止,并阻止其自身的任何新调用。
唯一的解决方案是使用杀死它taskkill
,等待几分钟,然后重新开始。可能会如下所述缩短等待时间。
Windows正在使绑定套接字保持活动状态,以便让另一方完成它所做的任何发送。这是因为TCP没有机制来通知连接另一端的设备该连接已终止。
解决方案是在注册表中HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
的DWORD项的注册表项中设置TcpTimedWaitDelay
Windows允许其他进程将其自身绑定到同一TCP端口之前等待的秒数。默认设置为120,表示2分钟,您可以将其设置为任意低(不建议设置为零)。此设置仅影响Windows,不影响其他设备。
有关更多信息,请参阅可以修改以提高网络性能的设置。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句