构建支持SSL的uWSGI

来源:互联网 发布:重庆智绘点途软件学院 编辑:程序博客网 时间:2024/06/05 09:47

构建支持SSL的uWSGI

问题:普通安装pip install uwsgi后,使用sockeio报错

you need to build uWSGI with SSL support to use the websocket handshake api function !!!

解决:

# 先卸载uwsgisudo pip uninstall uwsgi# 安装libssl-devsudo apt-get install libssl-dev# 重新安装uwsgisudo CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" UWSGI_PROFILE_OVERRIDE=ssl=true pip install uwsgi -I --no-cache-dir