当前位置:网站首页>Apache站点下载大文件自动中断或者文件不完整
Apache站点下载大文件自动中断或者文件不完整
2022-08-09 02:21:00 【yutiedun】
解决方法
修改Apache配置文件httpd.conf
修改或添加以下内容
EnableMMAP off
EnableSendfile off
原因分析
原来在默认情况下,当处理一个请求并不需要访问文件内部的数据时(比如发送一个静态的文件内容),如果操作系统支持,Apache将使用sendfile将文件内容直接发送到客户端而并不读取文件。这个sendfile机制避免了分开的读和写操作以及缓冲区分配。由于默认是打开的,但有些操作系统对sendfile系统调用支持不够。所以会出现无法传输大于一定容量的html页面。关掉并不影响正常使用。
边栏推荐
猜你喜欢
2022PMP项目管理认证考试报考指南(1)
数仓第二篇: 数据模型(维度建模)
33. 分别谈谈联合索引生效和失效的条件
线段树知识整理
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules
MT4/MQL4 Getting Started to Mastering EA Tutorial Lesson 1 - MQL Language Common Functions (1) OrderSend() Function
[C language brush questions] Application of fast and slow pointers in linked lists
配置文件的读取-TOML
力扣刷题记录4.1-----209. 长度最小的子数组
帮助安全红队取得成功的11条建议
随机推荐
电磁辐射安全标准及检测方法
2022 Eye Health Brand Franchise Exhibition, Beijing Vision Care Exhibition, China Ophthalmology Technology Summit
2022 Eye Care Products Exhibition, Beijing Eye Health Exhibition, Ophthalmology Exhibition, Myopia Correction Equipment Exhibition
物联网未来:未来五年的预期
HCIP-R&S By Wakin自用笔记(2)OSPF之OSPF回顾、虚连接
使网络安全威胁风险更高和成本更高的五个趋势
Difference between KQL and Lucene
Summary of pytorch related knowledge points
Data recovery software EasyRecovery supports recovery of all types of files
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules
HCIP-R&S By Wakin自用笔记(3)OSPF之各类LSA及LSA更新规则
增额终身寿险哪家最好呢?真的安全吗?
MT4/MQL4 entry to proficient foreign exchange EA tutorial Lesson 1 Getting to know MetaEditor
边缘计算的三个关键好处
OpenMLDB + Jupyter Notebook:快速搭建机器学习应用
KQL和Lucene的区别
2022眼康品牌加盟展,北京视力保健展,中国眼科医学技术峰会
点击div内部默认文本被选中
2022PMP项目管理认证考试报考指南(1)
torchversion.transforms的使用