server.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:redis-pubsub 作者: xitongjiagoushi 项目源码 文件源码
def main():
    tornado.options.parse_command_line()
    # create http server
    http_server = tornado.httpserver.HTTPServer(Application())
    # serve the host and port pass by command line(or default 0.0.0.0:8000)
    http_server.listen(options.port, options.host)
    # start http server
    tornado.ioloop.IOLoop.current().start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号