CannotListenError:无法听任何:9008:[Errno 98]地址已在使用
问题描述:
我正在通过python websocket上的Autobahn的应用程序。 我发现了一个问题,如果我再打断一次后重新启动我的服务器代码我的服务器代码会送我的错误,如:CannotListenError:无法听任何:9008:[Errno 98]地址已在使用
2016-03-03 13:20:34+0530 [-] Log opened.
2016-03-03 13:20:34+0530 [-] Traceback (most recent call last):
2016-03-03 13:20:34+0530 [-] File "TestServer.py", line 23, in <module>
2016-03-03 13:20:34+0530 [-] reactor.listenTCP(9008, factory)
2016-03-03 13:20:34+0530 [-] File "/home/ddserver/python1/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 478, in listenTCP
2016-03-03 13:20:34+0530 [-] p.startListening()
2016-03-03 13:20:34+0530 [-] File "/home/ddserver/python1/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 984, in startListening
2016-03-03 13:20:34+0530 [-] raise CannotListenError(self.interface, self.port, le)
2016-03-03 13:20:34+0530 [-] twisted.internet.error.CannotListenError: Couldn't listen on any:9008: [Errno 98] Address already in use.
我的错误理解是有其背后甚至中断后上运行的一些基本服务服务器,但如何清除所有这些端口?
其简单的使用命令 “定影-k -n TCP” –