具有pcre支持的uWSGI

具有pcre支持的uWSGI,uwsgi,pcre,Uwsgi,Pcre,我安装了带有pcre支持的uWSGI(在Heroku上) 我得到了这个信息: ################# uWSGI configuration ################# pcre = True kernel = Linux malloc = libc execinfo = False ifaddrs = True ssl = True zlib = True locking = pthread_mutex plugin_dir = . timer = timerfd yaml

我安装了带有pcre支持的uWSGI(在Heroku上) 我得到了这个信息:

################# uWSGI configuration #################
pcre = True
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 = True
debug = False
capabilities = False
xml = libxml2
event = epoll
############## end of uWSGI configuration #############
但是,当我使用uwsgi--pcre-jit启动它时

我明白了:

*** Starting uWSGI 2.0.10 (64bit) on [Mon Jun 22 22:51:56 2015] ***
compiled with version: 4.8.2 on 22 June 2015 22:37:39
os: Linux-3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015
nodename: 2bba099f-37e1-4ee2-aaa2-2400a68e6530
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /app
detected binary path: /app/.heroku/python/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 256
your memory page size is 4096 bytes
detected max file descriptor number: 10000
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.

pcre jit已禁用。为什么uwsgi不使用pcre?

pcre jit是pcre库中必须支持的优化。可能heroku(或您用于pcre的构建包)已经更改了DDAMN,这是几周前在常规python构建包和新的cedar堆栈中实现的。uwsgi内部路由不再工作。jit只是一种优化,uwsgi内部路由不需要它,任何pcre版本都适用于包含libpcre3(1:8.31-2ubuntu2)、libpcre3 dev(1:8.31-2ubuntu2)和libpcrecpp0(1:8.31-2ubuntu2)的itHeroku Cedar-14。它应该会起作用。(它正在工作…)你的意思是“pcre jit禁用”仅仅意味着只有jit优化被禁用?如何检查是否至少加载了一个pcre库?我确认:pcre正在工作。谢谢