我没有使用 uwsgitop 和 socket 获取 uwsgi 统计信息。我已经将 uwsgi 配置用于带有套接字的统计信息,当我尝试使用以下命令获取统计信息时:
uwsgitop /var/www/uwsgi/proj.socket
Run Code Online (Sandbox Code Playgroud)
它抛出错误
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Run Code Online (Sandbox Code Playgroud)
我正在使用uwsgi 版本 2.0.17.1。
这是我的 uwsgi ini 文件
[uwsgi]
# Multi Thread Support
enable-threads = true
# Django-related settings
# the base directory (full path)
chdir = /home/user/base-dir/proj-path/
# Django's wsgi file
module = proj.wsgi
# the virtualenv (full path)
home = /home/user/base-path/
# process-related settings
# master
master = true
# maximum number of worker processes
processes …Run Code Online (Sandbox Code Playgroud)