You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
331 B

1 year ago
from tornado.httpserver import HTTPServer
from tornado.wsgi import WSGIContainer
from FlaskServer import app
from tornado.ioloop import IOLoop
s = HTTPServer(WSGIContainer(app))
# http://10.10.21.20:5000/ZhuQue/blog/sql?id=2
s.listen(5000) # 监听 5000 端口对应flask的端口。
IOLoop.current().start()