将IIS与Python CGI标头一起使用时出错

时间:2018-09-05 05:18:43

标签: python

当我想使用IIS托管我的聊天机器人应用程序时,我做了很多尝试,但遇到了"The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "HTTP/1.0 Status: 200 OK Content-type: text/html Content-Type: text/plain Content-__ Hello, world!....Hoopss Traceback (most recent call last): File "D:\PycharmProjects-2\gone\Bot_Chat.py", line 1789, in <module> httpserver.listen(address='192.160.00.00', port=5000) File "C:\Python35\lib\site-packages\tornado\tcpserver.py", line 144, in listen sockets = bind_sockets(port, address=address) File "C:\Python35\lib\site-packages\tornado\netutil.py", line 163, in bind_sockets sock.bind(sockaddr) OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted ".之类的错误 请任何人能救我。.预先感谢

0 个答案:

没有答案