![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
请告诉他
日日行,不怕千万里;常常做,不怕千万事。
展开
-
解决window系统nginx造成很多TIME_WAIT访问变慢
linux系统和win系统都存在这种问题,网上我找太多都讲linux的处理方式这里我只记录win的处理方式TIME_WAIT状态存在的理由:1)可靠地实现TCP全双工连接的终止 在进行关闭连接四次挥手协议时,最后的ACK是由主动关闭端发出的,如果这个最终的ACK丢失,服务器将重发最终的FIN,因此客户端必须维护状态信息允许它重发最终的ACK。如果不维持这个状态信息,那么客户端将响应RST分节,服务器将此分节解释成一个错误(在java中会抛出connection reset的Socke...原创 2020-12-18 14:16:51 · 1715 阅读 · 3 评论 -
转载过来一篇比较好的关于linux安装nginx的博文
原文地址:https://blog.csdn.net/weixin_44679078/article/details/105731607转载 2020-12-17 21:24:08 · 93 阅读 · 0 评论 -
nginx反向代理去除前缀
背景:vue项目部署到linux服务器,前端项目和后台项目部署同一台服务器,需要用到nginx做反向代理需求:当前有访问地址http://www.testurl.com:8087/test-api/admin/login请求中需要去掉test-api下面对nginx.config进行配置通过rewrite重写url #keepalive_timeout 0; keepalive_timeout 65; #gzip on; upstrea...原创 2020-12-15 11:50:45 · 2635 阅读 · 0 评论 -
linux 安装nginx,nginx error: the HTTP rewrite module requires the PCRE library;the HTTP gzip module re
问题:nginx error: the HTTP rewrite module requires the PCRE library.执行:yum -y install pcre-devel问题:the HTTP gzip module requires the zlib library.执行:yum install -y zlib-devel原创 2020-12-06 23:42:12 · 116 阅读 · 0 评论 -
nginx多层代理java获取客户端真实ip
nginx的部分配置location / { proxy_redirect off; proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-For ...原创 2020-10-12 10:28:15 · 1079 阅读 · 0 评论