首页 > 系统相关 >Nginx:client_body_temp_path 指令的上传文件测试

Nginx:client_body_temp_path 指令的上传文件测试

时间:2023-07-13 12:12:22浏览次数:41  
标签:body 文件 temp Nginx client path 上传

结论

硬盘必须要有上传文件3倍大小的剩余空间。否则会报错“no space left on device”。
需要注意,这3份数据都会写到硬盘。大文件上传,实时观察硬盘剩余空间watch -n 0.1 "df -hm /",会看到很大的波动。

默认临时文件路径

  • 文档
Syntax: 	client_body_temp_path path [level1 [level2 [level3]]];
Default: 	client_body_temp_path client_body_temp;
Context: 	http, server, location
  • 实际测试:/var/lib/nginx/tmp/client_body/

建议配置

一般根分区都比较小,如果有大文件上传的需求,最好将指定一下临时目录

client_body_temp_path /data/temp;
client_body_in_file_only clean;

标签:body,文件,temp,Nginx,client,path,上传
From: https://www.cnblogs.com/dewan/p/17550113.html

相关文章

  • ubuntu apt安装最新稳定版nginx
    适用于apt安装,根据自身系统可更改命令#!/bin/bash#下载安装nginxkeywgethttp://nginx.org/keys/nginx_signing.key-P/root/script/download#安装keysudoapt-keyadd/root/script/download/nginx_signing.key#添加源release_name=`lsb_release-c|awk-F''......
  • Windows系统使用Nginx部署Vue
    Nginx是什么?Nginx(enginex)是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点开发的,因它的稳定性、丰富的功能集、简单的配置文件和低系统资源的消耗而闻名。优点速度更快、并发更高......
  • Nginx 常用的基础配置
    基础配置1userroot;2worker_processes1;34events{5worker_connections10240;6}78http{9log_format'$remote_addr-$remote_user[$time_local]'�......
  • Nginx 常用的基础配置(web前端相关方面)
    基础配置userroot;worker_processes1;events{worker_connections10240;}http{log_format'$remote_addr-$remote_user[$time_local]''"$request"$status$bod......
  • nginx部署vue网站
    1.背景        最近gpt很火,于是尝试用gpt来进行古诗词取名,做了一个vue的网站进行展示,第一次部署,踩了一些坑。2.实施nodejs安装:在任意目录执行如下命令进行安装包下载:wgethttps://npm.taobao.org/mirrors/node/v14.17.6/node-v14.17.6-linux-x64.tar.gz解压 tar......
  • mybatis-plus Error attempting to get column 'xxx' from result set.
     报错信息:mybatis-plusErrorattemptingtogetcolumn'xxx'fromresultset. 解决:1、获取数据的实体类中新建了一个有参的构造方法,却没有无参构造方法,使用MyBatis-Plus内置方法进行查询时会报错。解决办法:新建一个无参构造方法。......
  • 解决docker报错Job for docker.service failed because start of the service was att
    转载自:https://blog.csdn.net/Along_168163/article/details/124118833=================== docker安装之后重新安装报错如下:Jobfordocker.servicefailedbecausestartoftheservicewasattemptedtoooften.See"systemctlstatusdocker.service"and"journa......
  • 记一个nginx的配置
    cat/usr/share/nginx/html/index.htmlHelloMyApp|Version:v1|<ahref="hostname.html">PodName</a>location/{root/usr/share/nginx/html;indexindex.htmlindex.htm;}#error_page404......
  • Java扩展Nginx之三:基础配置项
    欢迎访问我的GitHub这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos本篇概览经历了前面两篇的入门和编译源码之后,从本篇起,咱们用理论结合实战的方式进入系统的nginx-clojure学习之旅作为《Java扩展Nginx》系列的第三篇,本文会与大家一起了......
  • Nginx代理Mysql
    10.2.24.161部署nginx,代理10.2.24.191:3306数据库1.安装stream模块nginx默认不会编译stream模块的,需要在编译的时候,指定--with-stream./configure--prefix=xxx--add-module=xxxx--add-module=xxx--with-stream我在10.2.24.161执行:./configure--prefix=/opt/local/nginx......