当我上传 config.json 时会发生这种情况:
sudo curl -X PUT --data-binary @config.json --unix-socket /var/run/control.unit.sock http://localhost/config
{
"error": "Invalid configuration.",
"detail": "The module to run \"python 3.6\" is not found among the available application modules."
}
我试过了:Python
,Python 3.7
我尝试上传的 config.json:
{
"listeners": {
"*:1234": {
"pass": "applications/flask"
}
},
"applications": {
"flask": {
"type": "python 3.6",
"processes": 5,
"path": "/home/123/123/",
"home": "/home/123/123/venv/",
"module": "wsgi",
"user": "root",
"group": "root"
}
}
}
这一切都是在我尝试使用 nginx 单元制作简单的烧瓶演示时发生的