我有以下设置 - 当我在浏览器中访问服务器时没有得到任何响应。
我应该期待一些吗?这是使用 python 和 Flup 的测试设置。
#test.py
def myapp(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['abc\n']
import os
os.environ['FCGI_WEB_SERVER_ADDRS']="127.0.0.1:8000"
from flup.server.fcgi import WSGIServer
WSGIServer(myapp, bindAddress=('127.0.0.1',8000)).run()
python test.py
lynx http://127.0.0.1:8000
unexpected network read error; connection aborted
如果我注释掉操作系统的东西并重新启动服务器:
lynx http://127.0.0.1:8000
HTTP request sent; waiting for response.
没有任何回报。