У меня есть приложение Django с fastCGI.
Следующее представление запускает множество процессов с именем "/ usr / bin / python index.fcgi" . Они внезапно появляются и просто остаются там навсегда.
def serveMusicFile(request,filename):
from django.conf import settings
file = open('/my/private/file/location/'+filename)
response = HttpResponse(file.read(), mimetype="audio/mpeg")
response['Accept-Ranges'] = 'bytes'
response['Content-Length'] = os.path.getsize('/my/private/file/location/'+filename)
response['Content-Disposition'] = 'filename='+filename
return response
Итак, почему Django / fastCGI запускает этот процесс? Как я могу остановить их таблетки?