I'm trying to install uWSGI with pip for deploying a Django project:
$ pip install uwsgi
[...]
################# uWSGI configuration #################
pcre = False
kernel = Linux
malloc = libc
execinfo = False
ifaddrs = True
ssl = True
zlib = True
locking = pthread_mutex
plugin_dir = .
timer = timerfd
yaml = embedded
json = False
filemonitor = inotify
routing = False
debug = False
capabilities = False
xml = expat
event = epoll
############## end of uWSGI configuration #############
[...]
I see the build configuration there being shown with some options I'd like to change.
ssl
(done in nginx, I don't want the uwsgi
binary to link to OpenSSL)routing
and pcre
to quickly set up the embedded HTTP server.How do I do that with pip install uwsgi
?
The uwsgi binary is placed in /usr/bin/uwsgi when installing uwsgi this way.
If there are no socket files in /run/uwsgi , it generally means that the uwsgi process was unable to create it. Check the status of the uwsgi process to find out whether it was able to start: sudo systemctl status uwsgi.
uWSGI doesn't work on bare Windows. (It might work on Cygwin, but that's probably not something you want to pursue.)
The setup process checks an environment variable UWSGI_PROFILE_OVERRIDE
which can override these configurations. It consists of key=value
pairs separated by ;
(semicolons). The values true
and false
must be lowercase which tripped me up at first.
So you could try UWSGI_PROFILE_OVERRIDE=ssl=false;routing=true;pcre=true
However, there's a bunch of auto-detection of capabilities happening too, so it might be that it complains about libraries when you try to force options on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With