当前位置:网站首页>Apache站点下载大文件自动中断或者文件不完整
Apache站点下载大文件自动中断或者文件不完整
2022-08-09 02:21:00 【yutiedun】
解决方法
修改Apache配置文件httpd.conf
修改或添加以下内容
EnableMMAP off
EnableSendfile off
原因分析
原来在默认情况下,当处理一个请求并不需要访问文件内部的数据时(比如发送一个静态的文件内容),如果操作系统支持,Apache将使用sendfile将文件内容直接发送到客户端而并不读取文件。这个sendfile机制避免了分开的读和写操作以及缓冲区分配。由于默认是打开的,但有些操作系统对sendfile系统调用支持不够。所以会出现无法传输大于一定容量的html页面。关掉并不影响正常使用。
边栏推荐
- Etcd realize large-scale application service management of actual combat
- mysql连接超过八小时报错
- 2022中国眼博会,中国北京国际儿童青少年眼睛健康产业展览会
- 程序员的日常生活 | 每日趣闻
- JDBC技术(一)——一个简单的JDBC测试
- 力扣刷题记录1.5-----367. 有效的完全平方数
- 在树莓派上使用cpolar(番外篇2)
- The last exam before the NPDP revision!caution
- 2022 Eye Health Brand Franchise Exhibition, Beijing Vision Care Exhibition, China Ophthalmology Technology Summit
- eladmin容器部署超详细过程
猜你喜欢

mysql 5.7 入坑

ROS2 ERROR: OpenGL 1.5 is not supported in GLRenderSystem::initialiseContext at C:\ci\ws\build...

MT4 / MQ4L entry to the master of EA tutorial lesson two (2) - - MQL language commonly used function account information commonly used functions

The last exam before the NPDP revision!caution

How SEMRush finds keywords for advertising

Summary of pytorch related knowledge points

数据恢复软件EasyRecovery支持恢复所有类型的文件

【云计算】XaaS最全介绍(按24字母合集):AaaS、BaaS、CaaS、DaaS、EaaS、FaaS、GaaS、HaaS、IDaaS…

使网络安全威胁风险更高和成本更高的五个趋势

Mysql 5.7 into the pit
随机推荐
Go-12-结构体
Electromagnetic radiation safety standards and detection methods
2022 China Eye Expo, China Beijing International Children and Adolescent Eye Health Industry Exhibition
Likou Brush Question Record--Common Functions
方法参数
Line segment tree of knowledge
NPDP改版前最后一次考试!请注意
Composer usage record
HCIP-R&S By Wakin自用笔记(3)OSPF之各类LSA及LSA更新规则
2020.10.13 Development log
Which is the best increased whole life insurance?Is it really safe?
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules
Go-11 - Process Control
企业里Foxmail邮箱问题解决方法汇总
18.flink Table/Sql API之 catlog
点击div内部默认文本被选中
力扣刷题记录--常用功能函数
mysql 5.7 入坑
[C language brush questions] Application of fast and slow pointers in linked lists
33. 分别谈谈联合索引生效和失效的条件