Tornado 开发API ,为了安全需求仅限内网使用,默认http server.listen 是0.0.0.0
可以指定绑定的IP
from tornado.options import define,options
define('port',default=80,help='run to this port',type=int)
http_server.listen(options.port,address='127.0.0.1')
Tornado 开发API ,为了安全需求仅限内网使用,默认http server.listen 是0.0.0.0
可以指定绑定的IP
from tornado.options import define,options
define('port',default=80,help='run to this port',type=int)
http_server.listen(options.port,address='127.0.0.1')
转载于:https://my.oschina.net/ilinux/blog/343874