One - One Code All

Blog Content

系统命令执行python安装包gunicorn,uwsgi

Python Linux-Mac   2019-03-02 08:08:42

gunicorn配置

pip install  gunicorn[gevent]

ln -s /usr/local/python3/bin/gunicorn /usr/bin/gunicorn

gunicorn -c gunicorn_config.py hello:app


whereis python3python3: /usr/bin/python3 /usr/local/python3

找到gunicorn的位置:/usr/local/python3/bin/gunicorn

Linux版的Python某些可直接命令行执行的模块在bin目录,我们可以创建软连接也可以直接运行时指定绝对路径。


uwsgi  config.ini 也是一样用法。


/Library/Frameworks/Python.framework/Versions/3.7/bin/uwsgi



上一篇:macbook 编译时出现stdio.h file not found 的解决办法,use Software Update to install updates
下一篇:Mac root Operation not permitted解决方案

The minute you think of giving up, think of the reason why you held on so long.