keepalive解决NPS
时间: 2023-09-04 13:14:33 浏览: 147
要解决NPS的keepalive问题,你可以尝试以下方法。首先,根据引用的指南,你可以按照步骤安装NPS并配置相关文件。然后,你可以根据引用中提到的,调整Nginx的keepalive_timeout配置,确保在连接上没有数据传输时,服务端不会过早地关闭连接。此外,引用中也提到了两种方式可以优化系统并发量较小的情况下的keepalive设置。一种是在第一台Nginx中去除proxy_http_version 1.1; proxy_set_header Connection "0";的配置,另一种是将第二台Nginx的keepalive_timeout配置为0。通过这些调整和优化,你应该能够解决NPS的keepalive问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [contos7部署环境docker minio,mysql redis nps内网穿透等等](https://blog.csdn.net/weixin_43440893/article/details/127659524)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Nginx“ upstream prematurely closed connection while reading response header from upstream“问题排查](https://blog.csdn.net/JineD/article/details/115632258)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文