简体   繁体   English

使用 django 写入 Azure 应用服务 linux 中的 /tmp

[英]Writing in /tmp in Azure app service linux with django

We have an Azure linux app service running django.我们有一个运行 django 的 Azure linux 应用服务。 When we upload a file to it that is greater than 2.5MB it written by default in the /tmp.当我们上传一个大于 2.5MB 的文件时,它默认写入 /tmp. When this happens we notice increase in response time from the app service before it eventually crash.发生这种情况时,我们注意到应用服务在最终崩溃之前的响应时间会增加。 Is there a restriction on writing in the /tmp for a linux web app?在 linux web 应用程序的 /tmp 中写入是否有限制? If so where can we write our temporary file?如果是这样,我们在哪里可以写我们的临时文件? How could I make sure that the /tmp is in fact the issue?我如何确保 /tmp 确实是问题所在? We don't want to increase FILE_UPLOAD_MAX_MEMORY_SIZE value of django.我们不想增加 django 的 FILE_UPLOAD_MAX_MEMORY_SIZE 值。 We looked at this documentation but it doesn't talk of any issue on the tmp for linux.我们查看了这个文档,但它没有谈到 linux 的 tmp 上的任何问题。

Are you using a App Service Linux in "Code" mode or "Container" mode?您是在“代码”模式还是“容器”模式下使用应用服务 Linux? That will help frame the answer.这将有助于构建答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure Devops将Django应用程序部署到Linux Azure App Service - Azure Devops deploy django application to Linux Azure App Service Django Web应用已成功部署在Azure App Service Linux上,但只能看到Azure默认页面 - Django Web app is successfully deployed on Azure App Service Linux but can only see Azure Default Page Azure“App Service” - Django和SQLite - Azure “App Service” - Django and SQLite 开始生产芹菜工人。 在Azure / linux应用服务上使用Django / Python - Start Celery worker on production. Using Django/Python on Azure/linux app service Azure Web应用程序服务Django服务器日志 - Azure web app service Django server log 在 Azure 应用服务上的 Django 应用程序中出现错误 - Getting Error in Django Application on Azure App Service 通过三种方法将 Django 应用程序部署到 Azure 失败(创建/访问 tmp 文件的问题) - Django App Deployment to Azure Failing Via Three Methods (problems creating/accessing tmp files) Django:在 Azure 应用程序服务上找不到模块 - Azure DevOps CD - Django: Module not Found on Azure App Service - Azure DevOps CD Azure 应用服务托管 Django APP 中的管理面板中没有 CSS - No CSS in Admin panel in Azure App Service hosted Django APP 部署 Django 并将应用程序反应到 Azure 应用程序服务后的下一步 - next steps after deploying Django and react app to Azure app service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM