Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/24.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.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
Django uWSGI—重新加载中断日志旋转_Django_Wsgi_Uwsgi_Django Wsgi - Fatal编程技术网

Django uWSGI—重新加载中断日志旋转

Django uWSGI—重新加载中断日志旋转,django,wsgi,uwsgi,django-wsgi,Django,Wsgi,Uwsgi,Django Wsgi,我使用以下命令启动uWSGI: uwsgi --socket=127.0.0.1:8080--daemonize=uwsgi.out --module=web.wsgi:application --env DJANGO_SETTINGS_MODULE=web.settings --env --master --pidfile=uwsgi.pid --processes=10 --harakiri=120 --max-requests=5000 --vacuum --log-maxsize=100

我使用以下命令启动uWSGI:

uwsgi --socket=127.0.0.1:8080--daemonize=uwsgi.out --module=web.wsgi:application --env
DJANGO_SETTINGS_MODULE=web.settings --env --master --pidfile=uwsgi.pid --processes=10
--harakiri=120 --max-requests=5000 --vacuum
--log-maxsize=1000000 --propagate-touch --touchlogrotate=uwsgi.logrotate
当达到
log maxsize
限制时,以及当我触摸
touchlogrotate
指定的文件时,一切都按预期工作,日志会旋转。但一旦我重新加载uWSGI(通过在上面添加
--reload./uWSGI.pid
),则
--log maxsize
--touchlogrotate
都停止工作。我找到的唯一解决方案是硬重启