1 Star 0 Fork 0

sowhat510/Tornado_microServer

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
manager.py 694 Bytes
Copy Edit Raw Blame History
Heisenberg authored 2021-03-05 12:02 . update commit
from tornado.ioloop import IOLoop
import tornado.options as options
from app import make_app
if __name__ == '__main__':
# 定义命令行参数
options.define('port',
default=9000,
type=int,
help='bind socket port')
options.define('host',
default='localhost',
type=str,
help='设置host name')
# 解析命令行参数的
options.parse_command_line()
app = make_app(options.options.port)
app.listen(options.options.port)
print('starting http://%s:%s' % (options.options.host, options.options.port))
# 启动服务
IOLoop.current().start()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sowhat510/Tornado_microServer.git
git@gitee.com:sowhat510/Tornado_microServer.git
sowhat510
Tornado_microServer
Tornado_microServer
master

Search