Loading

摘要: npm淘宝镜像域名地址更新 淘宝原镜像域名 [registry.npm.taobao.org] 的 HTTPS 证书正式到期。如果要继续使用,需要将 npm 源切换到新的源 [registry.npmmirror.com] 切换新的镜像地址 // 1. 清空缓存 npm cache clean -- 阅读全文
posted @ 2024-02-21 14:30 崔某一 阅读(241) 评论(0) 推荐(0) 编辑
摘要: logstash 官网 推荐内存4GB-8GB 配置 [root@logstash config]# cat dspfilterLog.conf input { file { path => "/data/logs/adx*/adx/adx-*/dspfilterLog/dspfilter.log" 阅读全文
posted @ 2022-01-28 10:29 崔某一 阅读(67) 评论(0) 推荐(0) 编辑
摘要: fluentbit 官网 安装 [root@logstash system]# cat /etc/yum.repos.d/td-agent-bit.repo [td-agent-bit] name = TD Agent Bit baseurl = https://packages.fluentbit 阅读全文
posted @ 2022-01-19 17:33 崔某一 阅读(880) 评论(1) 推荐(0) 编辑
摘要: Go基础语法(持续更新中...) Tips js解析整数为浮点数时,int64可能溢出 type Request struct { ID int64 `json:"id,string"` //加上 tag:json:"id:string" } 异常报错 // 1. 数组/切片索引越界 panic: 阅读全文
posted @ 2021-10-24 09:58 崔某一 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Gin学习笔记 Gin常用方法 r.GET("/demo", func(c *gin.Context) { // func (c *Context) Data(code int, contentType string, data []byte) 将字节数据写入并更新状态码 // c.SetCooki 阅读全文
posted @ 2021-06-30 18:15 崔某一 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #查看集群状态curl -XGET "http://ip:port/_cluster/health?pretty" { "cluster_name" : "log4x-cluster02", "status" : "yellow", "timed_out" : false, "number_of_n 阅读全文
posted @ 2020-08-24 18:32 崔某一 阅读(1520) 评论(0) 推荐(0) 编辑
摘要: 自定义war启动方法 #!/bin/bash export JENKINS_HOME="/apps/jenkins/data" java -Xmn128M -Xms1024M -Xmx1024M -DJENKINS_HOME=/apps/jenkins/data -jar /apps/jenkins 阅读全文
posted @ 2018-10-16 12:41 崔某一 阅读(175) 评论(0) 推荐(0) 编辑
摘要: cd /usr/local/src/ wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz tar zxf shc-3.8.9.tgz cd shc-3.8.9 mkdir -p /usr/local/man/man1 make install cp shc /usr/sbin/ cp shc /usr/bin/ shc ... 阅读全文
posted @ 2018-06-06 16:45 崔某一 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 连接限制没有请求限制有效?我们前面说过, 多个请求可以建立在一次的TCP连接之上, 那么我们对请求的精度限制,当然比对一个连接的限制会更加的有效。因为同一时刻只允许一个连接请求进入。但是同一时刻多个请求可以通过一个连接进入。所以请求限制才是比较优的解决方案。 阅读全文
posted @ 2018-06-05 17:23 崔某一 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 提示json的输出 提示文本的输出 阅读全文
posted @ 2018-06-05 15:37 崔某一 阅读(636) 评论(0) 推荐(0) 编辑