Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ModuleNotFoundError:没有名为';\\的模块--访问日志文件';_Python_Python 3.x_Django_Gunicorn - Fatal编程技术网

Python ModuleNotFoundError:没有名为';\\的模块--访问日志文件';

Python ModuleNotFoundError:没有名为';\\的模块--访问日志文件';,python,python-3.x,django,gunicorn,Python,Python 3.x,Django,Gunicorn,求你了,我需要帮助。我是python的初级开发人员。我正在为一个客户机设置一个服务器,当我遇到这个错误时,没有名为“\--访问日志文件”的模块 这是gunicorn.服务部 [Unit] Description=gunicorn daemon Requires=gunicorn.socket After=network.target 这是gunicorn.service服务 [Service] User=metalcode Group=www-data WorkingDirectory=/ho

求你了,我需要帮助。我是python的初级开发人员。我正在为一个客户机设置一个服务器,当我遇到这个错误时,没有名为“\--访问日志文件”的模块

这是gunicorn.服务部

[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
这是gunicorn.service服务

[Service]
User=metalcode
Group=www-data
WorkingDirectory=/home/metalcode
ExecStart=/home/metalcode/env/bin/gunicorn \
        --access-logfile - \
        --workers 3 \
        --bind unix:/run/gunicorn.sock \
        gworldtc.wsgi:application

请帮帮我。

运行gunicorn--config.py app:app--access logfile'-'
并查看是否有任何东西记录在stdout(控制台输出)上?gunicorn配置非常敏感。确保中间没有任何空间。在您的例子中,您正在尝试查找名为
\--access logfile
的模块,因此我猜有些地方写得不好。有时重写会有所帮助。