自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (3)
  • 收藏
  • 关注

原创 【vim】删除命令

dd:删除游标所在的一整行(常用)ndd:n为数字。删除光标所在的向下n行,例如20dd则是删除光标所在的向下20行d1G:删除光标所在到第一行的所有数据dG:删除光标所在到最后一行的所有数据d$:删除光标所在处,到该行的最后一个字符d0:那个是数字0,删除光标所在到该行的最前面的一个字符x,X:x向后删除一个字符(相当于[del]按键),X向前删除一个字符(相当于[backspac...

2019-05-30 14:36:34 657

原创 【http】Keep-alive 知多少?作用?默认时长?

1 作用:Persistent (or Keep-alive) ConnectionsIn HTTP/1.0, the server closes the TCP connection after delivering the response by default (Connection: Close). That is, each TCP connection services onl...

2019-05-27 23:43:55 7257 1

原创 【http】HTTP 协议从未规定 GET/POST 的请求长度限制是多少?

答案:未做任何限制所有的俄限制都是浏览器或者服务器自己做的限制;理由1 :The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be ...

2019-05-27 23:39:13 1164

转载 【压缩算法】What's the difference between gzip and compress? DEFLATE

http前端请求:压缩算法不同?Compress is significantly older (1983) and based on the LZW compression algorithm.Gzip was written in the early 90's and is based on the DEFLATE algorithm.In general Compress wil...

2019-05-27 23:31:36 171

原创 【NAT】一个公网出口NAT服务设备最多可同时支持多少内网IP并发访问外网服务?

答案:65535解析: PNAT技术如图:最终映射表中储存的是公网出口IP:PORT 映射到内网私有IP:PORT,由于公网出口IP只有一个,而PORT是16位,即最多 2^16个映射关系。...

2019-05-27 23:27:40 8511 3

原创 【感悟】工作几年后,你找到自己的内心了吗?摔跤吧,爸爸

2019-05-26 22:35:08 112

原创 【httpd】如何通过 配置 httpd.conf 在服务端保护受访问的资源

The following GET request tried to access a protected resource. The server returns an error "403 Forbidden". In this example, the directory "htdocs\forbidden" is configured to deny all access in the A...

2019-05-26 13:28:23 237

原创 【http】你真的知道Keep-alive的作用吗?

TCP层连接的复用,依靠的tcp client端的端口号保持不变,重复使用By fault, for HTTP/1.0 GET request, the server closes the TCP connection once the response is delivered. You could request for the TCP connection to be maintaine...

2019-05-26 13:23:46 1236

原创 【http】真的知道http response code的含义吗?

The first line of the response message (i.e., the status line) contains the response status code, which is generated by the server to indicate the outcome of the request.The status code is a 3-digit...

2019-05-26 13:15:43 789

原创 【mysql】批量更新/分组查询语句 CASE WHEN END 语法

举例1UPDATE biz_tableSET biz_tags = CASE biz_idWHEN 2408466 THEN '["不限"]'WHEN 2408533 THEN '["不限"]'ENDWHERE biz_id IN (2408466,2408468)举例 2SELECT batch, count(*) as "领取量" FROM (select ...

2019-05-26 09:56:54 388

原创 【awk】执行文件中每一行命令

awk:cat 800.txt| awk '{cmd=$0;system(cmd)}'注意$0表示本行内容

2019-05-25 19:54:10 1162

原创 【历史】http 发展历史

HTTP SpecificationsThe HTTP specification is maintained byW3C (World-wide Web Consortium)and available athttp://www.w3.org/standards/techs/http. There are currently two versions of HTTP, namely,...

2019-05-25 16:25:23 448

原创 【redis集群】阿里云redis集群 对lua脚本的支持程度

1 阿里云集群 对lua脚本的支持程度https://help.aliyun.com/document_detail/26356.htmlLua使用限制Lua脚本放开限制,标准版-双节点、标准版-单节点支持用户直接调用。集群版本条件性支持:a 所有key都应该由KEYS数组来传递,redis.call/pcall中调用的redis命令,key的位置必须是KEYS array(不能...

2019-05-21 23:24:17 2404 2

原创 【故障】oom导致 redis超时 rec 队列打满,导致tomcat拒绝服务

1 现象描述:磁盘占用到了50% 累计 ;PRINT_GC="-XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:-PrintHeapAtGC -XX:-UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M -Xlogg...

2019-05-20 23:44:32 626

原创 【技术】一个字符使得页面崩了 特殊字符的统一处理 springBoot 统一处理请求参数(/u2028) 完整demo

1 目的 统一处理请求参数 GET POST JSON / form2 解决方案: 获取请求的参数,扩展HttpServletRequestWrapper类,装饰器模式和包装器模式;【【【wrapper 一个新的请求出来/副本】】】3 实例如下/** * Request请求参数获取处理类 * * form and json * */public clas...

2019-05-16 00:02:33 3067 3

原创 【lambda】 java8 最显著的特性 lambda函数编程 数据和算法的分离

1 lambda 介绍The most notable new feature in JDK 8 is theLambda Expression, which provides a concise notation to construct an instance implementing a "Single-Abstract-Method Interface". In JDK 8, a "...

2019-05-14 23:35:55 560

转载 【Node.js】node js 基础完美实例

1.IntroductionJavaScripts typically run under a web browser (such as Chrome, Firefox). Node.js is a JavaScript engine that allows you to run JavaScript in standalone manner, without using a browse...

2019-05-14 12:33:49 121

原创 【Jackson】jackson序列化时异常,如何omit抛出异常的getter方法?

JackSon 如何omit抛出异常的getter方法;@Datapublic class Apple { String date_member = "123"; public String getDate(){ throw new RuntimeException("hh"); }}note:https://...

2019-05-13 23:59:51 312

原创 【历史】 tomcat mysql server 端本地部署完美方案

1 介绍HTTP Server: E.g., Apache HTTP Server, Apache Tomcat Server, Microsoft Internet Information Server (IIS), nginx, Google Web Server (GWS), and others. HTTP Client (or Web Browser): E.g., Interne...

2019-05-12 09:17:19 1493

原创 【历史】最原始、最本质的 Server-side Database Query Servlet

项目结构 webapps 目录下.//hello.//hello/index.html.//hello/WEB-INF.//hello/WEB-INF/.DS_Store.//hello/WEB-INF/classes.//hello/WEB-INF/classes/HelloServlet.class.//hello/WEB-INF/classes/HelloServlet.jav...

2019-05-12 09:06:57 257

原创 【历史】 apache catalina servlet tomcat 命名的由来

上世纪八十年代,当互联网开始在美国大学流行的时候,美国计算机名校伊利诺伊大学香槟分校(UIUC)的国家超级计算应用中心(National Center for Supercomputing Applications, NCSA)组织了一些研究生开始编写基于HTTP通信协议的服务器端和客户端程序。客户端端程序叫做mosaic,是第一个被普遍使用的网页浏览器,也是Netscape(网景)浏览器的前身,...

2019-05-09 16:02:49 2324

原创 【redis】 大key解决方案第二步

方案:对于量少的大key 可以考虑本地cache protected Cache<String, Set<String>> habitMemberCache = CacheBuilder.newBuilder().maximumSize(2000L).expireAfterWrite(1800L, TimeUnit.SECONDS).build();...

2019-05-07 17:18:41 627

原创 【技能】spring项目如何实现在线机器上下线呢?  ServletContextListener知多少?

如何实现在线机器上下线呢?方案1:javax.servlet.ServletContextListener 扩展接口监听 Servlet 初始化事件和销毁事件public class HealthCheckWatcher implements ServletContextListener, Runnable { private final Logger logger =...

2019-05-07 00:00:04 175

原创 【知识库】AccessLogValve org.apache.catalina.valves.AbstractAccessLogValve 中定义的access_log 日志占位符

Patterns for the logged message may include constant text or any of the following replacement strings, for which the corresponding information from the specified Response is substituted:、例如:start...

2019-05-06 23:53:56 1786

原创 【知识库】catalina.home 和 catalina.base 怎么寻找?定义?做什么用的? tomcat

1 查找:linux 系统 通过两个命令:jcmd 找到pidjinfo pid | grep catalina例如:2 定义:catalina.base : 项目的工作目录Name of the system property containing the tomcat instance installation path;catalina.home: 公用库目...

2019-05-06 14:48:42 1895 1

整理流程.png.zip

喜欢dubbo等rpc框架的伙伴

2021-02-07

zookeeper快速指导

zookeeper快速指导

2017-04-07

Memory Management in the Java HotSpot™ Virtual Machine.

15年最新

2016-12-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除