gpt4 book ai didi

django - uwsgi:无法识别的选项 '--https'

转载 作者:行者123 更新时间:2023-12-04 15:10:59 33 4
gpt4 key购买 nike

我在 AWS 上使用 uwsgi 2.0.8。我按照 http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html 上的说明进行操作启动我的网络应用程序。

uwsgi --master --https 0.0.0.0:8443,foobar.crt,foobar.key

但是,它会报告此错误: uwsgi: unrecognized option '--https' .

有人帮忙吗?

PS:我也在自己的MBP上安装了uwsgi 2.0.8,它和 --https配合得很好.

最佳答案

以下是我如何解决同样的问题:

  • pip 卸载 uwsgi
  • sudo apt-get install libssl-dev
  • (假设我在/mnt/server) git clone https://github.com/unbit/uwsgi.git
  • cd uwsgi
  • python uwsgiconfig.py --build
  • (让我们测试一下) sudo/mnt/server/uwsgi/uwsgi --master --https 0.0.0.0:443,foobar.crt,foobar.key,HIGH,ca.crt --chdir/mnt/server/mysite --模块 mysite.wsgi
  • 关于django - uwsgi:无法识别的选项 '--https',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27308288/

    33 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com