python - ubuntu16.04安装uwsgi问题

查看:119
本文介绍了python - ubuntu16.04安装uwsgi问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

  • pip3 install uwsgi
    安装好后输入uwsgi就出现如下错误:

*** Starting uWSGI 2.0.12-debian (64bit) on [Tue Sep 13 21:56:17 2016] ***
compiled with version: 5.3.1 20160412 on 13 April 2016 08:36:06
os: Linux-4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016
nodename: gorgle-System-Product-Name
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /home/gorgle
detected binary path: /usr/bin/uwsgi-core
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 63679
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
The -s/--socket option is missing and stdin is not a socket.

  • uwsgi --http-socket:9090 --wsgi-file /www/pp/helloworld.py
    执行上面的又会出现这个:

uwsgi: unrecognized option '--http-socket:9090'
getopt_long() error

解决方案

--http-socket和:9090后面要加空格

这篇关于python - ubuntu16.04安装uwsgi问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆