单纯使用flask的简单服务器:只能开发调试使用 生产环境是不够的 需要WSGI server 且GPU占用比较大 我的模型占6837M
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
$ sudo nginx -t 测试语法错误
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful