當我設置application.py時,它顯示socket.error:[Errno 98]地址已經在使用中。python socket.error:[Errno 98]地址已經在使用
Traceback (most recent call last):
File "application.py", line 121, in <module>
main()
File "application.py", line 117, in main
http_server.listen(options.port)
File "/usr/local/lib/python2.7/site-packages/tornado-3.1-py2.7.egg/tornado/tcpserver.py", line 117, in listen
sockets = bind_sockets(port, address=address)
File "/usr/local/lib/python2.7/site-packages/tornado-3.1-py2.7.egg/tornado/netutil.py", line 90, in bind_sockets
sock.bind(sockaddr)
File "/usr/local/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
您需要提供有關該應用程序的更多信息。 –
如果你知道它正在使用的地址,那麼你可以通過'netstat'找出還有什麼地址。 – Luke
請更改'地址'並提供更多代碼。 –