【Python学习笔记(二)】:在centos上部署flask程序

来源:互联网 发布:神庙逃亡2数据恢复 编辑:程序博客网 时间:2024/06/11 12:11
  1. 安装python3.5,flask,uwsgi服务器
    我这里服务器的python项目路径是:/home/www/pythonProject/
  2. 启动服务器,后台运行
    uwsgi --http :8001 --wsgi-file run.py --callable app --daemonize /var/log/uwsgi.log
    参考链接:
    1、uwsgi官网:https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html
阅读全文
0 0
原创粉丝点击