全文搜索
标题搜索
全部时间
1小时内
1天内
1周内
1个月内
默认排序
按时间排序
为您找到相关结果32个

springboot X-Accel-Redirect 大文件下载实现_java_脚本之家

X-Sendfile是一种将文件下载请求由后端应用转交给前端web服务器处理的机制,它可以消除后端程序既要读文件又要处理发送的压力,从而显著提高服务器效率,特别是处理大文件下载的情形下。 X-Sendfile 通过一个特定的 header 来实现:在 X-Sendfile 头中指定一个文件的地址来通告前端 web 服务器。当 web 服务器检测到...
www.jb51.net/program/2879476...htm 2024-6-4

在Nginx中使用X-Sendfile头提升PHP文件下载的性能(针对大文件下载)_n...

X-Sendfile 是一种将文件下载请求由后端应用转交给前端 web 服务器处理的机制,它可以消除后端程序既要读文件又要处理发送的压力,从而显著提高服务器效率,特别是处理大文件下载的情形下。 X-Sendfile 通过一个特定的 HTTP header 来实现:在 X-Sendfile 头中指定一个文件的地址来通告前端 web 服务器。当 web 服...
www.jb51.net/article/518...htm 2024-6-5

在PHP中使用X-SendFile头让文件下载更快_php实例_脚本之家

我们可以使用Apache的module mod_xsendfile, 让Apache直接发送这个文件给用户: 复制代码代码如下: <?php $file = "/tmp/中文名.tar.gz"; $filename = basename($file); header("Content-type: application/octet-stream"); //处理中文文件名 $ua = $_SERVER["HTTP_USER_AGENT"]; $encoded_filename = ...
www.jb51.net/article/505...htm 2024-6-1

Nginx的nginx.conf配置文件中文注释说明_nginx_脚本之家

#sendfile 指令指定 nginx 是否调用 sendfile 函数(zero copy 方式)来输出文件,对于普通应用, #必须设为 on,如果用来进行下载等应用磁盘IO重负载应用,可设置为 off,以平衡磁盘与网络I/O处理速度,降低系统的uptime. sendfile on; #tcp_nopush on; #连接超时时间 #keepalive_timeout 0; keepalive_timeout 65;...
www.jb51.net/article/591...htm 2024-6-5

nginx如何配置x-forwarded-for头部_nginx_脚本之家

# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 50001; server_name localhost; #charset koi8-r; ...
www.jb51.net/article/271874.htm 2023-1-6

FreeBSD常用指令整理(学习笔记)_Unix/BSD_操作系统_脚本之家

kern.ipc.nsfbufs="66560"#Setthenumberofsendfile(2)bufs ##解释: a.第一,第二行主要是为了突破 1G 内存设置的 b.第三行其实是 bsd 的一个 bug,当系统并发达到一个数量级的时候,系统会 crash, 这个是非常糟糕的事情,所幸更改了这个参数后,在高并发的时候,基本可以没有类似情 况,当然非常 bt 的情况...
www.jb51.net/os/Unix/1929...html 2024-5-20

php安装swoole扩展的方法_php技巧_脚本之家

checking for sendfile in -lc... yes ./configure: line 4740: PGSQL_INCLUDE: command not found checking for kqueue in -lc... yes checking for daemon in -lc... yes checking for mkostemp in -lc... no checking for pthread_rwlock_init in -lpthread... yes checking for pthread_spin_loc...
www.jb51.net/article/62510.htm 2024-6-5

如何快速搭建一个自己的服务器的详细教程(java环境)_服务器其它_脚本之...

Xftp的登录和Xshell类似,输入服务器IP,用户输入root,然后输入root密码,登录成功后,左边框为你自己电脑上的文件,右边为服务器上的文件,左右拖动来进行文件的上传和下载。 4.JDK的安装 这两个软件安装好之后我们便可以开始服务器环境的搭建,因为是学习用的简单环境,并发不高,所以并没有使用nginx,apache或者redis这些,...
www.jb51.net/article/1893...htm 2024-6-6

服务器使用Nginx部署Springboot项目的详细教程(jar包)_nginx_脚本之家

# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { #监听的端口号 listen 80; #设置访问的二级域名 server_name demo.eysource.com; #charset koi8-r; #access...
www.jb51.net/article/1899...htm 2024-6-3

Nginx在Windows下的安装与使用过程详解_nginx_脚本之家

# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; charset utf-8; #keepalive_timeout 0; keepalive_timeout 120; #gzip on; #填写自己的服务器ip和Tomcat端口 upstream local_tomcat { server xxx.xxx.xxx.xxx:8080; } serv...
www.jb51.net/server/284496q...htm 2024-6-6