分类

链接

2026 年 1 月
 1234
567891011
12131415161718
19202122232425
262728293031  

近期文章

热门标签

新人福利,免费薅羊毛

vue/react/node/vite/npm/yarn build自动更新版本号

//根目录 创建 version.js//安装 dayjs 或者 momentjs//修改package.json中build script为: node version.js & vite build//version.js如下:import fs from "fs";import dayjs from "dayjs";const getPackageJson = () => { let data = fs.readFileSync('./package.json') //fs读取文件 return JSON.parse(data) //转换为json对象}let packageData = getPackageJson()packageData.version = dayjs().format('YYYYMMDDHHmm');fs.writeFile( './package.j...

前端 暂无评论 阅读(233)

使用tengine代替Nginx

有了nginx,为什么还要用tengine?因为:  #下载 https://tengine.taobao.org/wget https://tengine.taobao.org/download/tengine-3.0.0.tar.gztar -zxvf tengine-3.0.0.tar.gzcd tengine-3.0.0#安装依赖yum install pcre-develyum -y install openssl openssl-devel./configure --add-module=modules/ngx_http_upstream_check_module#./configure --add-module=./nginx_upstream_check_module --with-http_ssl_module --with-http_v2_module --with-stream --with-http_gz...

Others 暂无评论 阅读(258)

nginx添加nginx_upstream_check_module

#cd nginx source foldercd /usr/local/nginx/nginx-1.18.0wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/refs/heads/master.zipunzip master.zipmkdir nginx_upstream_check_modulemv nginx_upstream_check_module/* ./nginx_upstream_check_module/./configure --add-module=./nginx_upstream_check_module#if need ssl#./configure --add-module=./nginx_upstream_check_module --with-http_ssl_module#backup old nginx filemv /usr/local/n...

Others 暂无评论 阅读(194)

调用企微接口报403 API Forbiden 无权限 的错误

https://work.weixin.qq.com/wework_admin/frame#/customer/analysis 需要修改应用权限 :

Others 暂无评论 阅读(160)

github连接超时:Connection closed by remote host

git pull 或者git push的时候,提示:kex_exchange_identification: Connection closed by remote hostConnection closed by 127.0.0.1 port 22fatal: Could not read from remote repository.Please make sure you have the correct access rights 使用命令:ssh -T git@github.com 检测如果测试成功,请关闭代理试试,如果测试失败,请向下配置:将ssh的22端口改为使用443在等待git pull命令超时之后报出了类似: ssh: connect to host github.com port 22: Connection timed out的错误!原因是: s...

Others 暂无评论 阅读(274)

kibana查询统计

统计关键词数量 :GET /docker-wecom-crm-api-2023.09/_search?q=message:"不存在外部联系人的关系"{ "size": 0, "query": { "match_all": { } }}  

大数据 暂无评论 阅读(386)

解决es报错:blocked by: [FORBIDDEN/12/index read-only / allow delete (api) ]

Elasticsearch中的 "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];" 错误通常表示你的索引处于只读状态,不允许读取操作,但允许删除操作。这可能是由于一些情况导致的,比如磁盘空间已满、集群健康状况等。这个错误可能有多个原因,下面是一些可能的解决方法:磁盘空间已满: Elasticsearch在索引数据的时候需要足够的磁盘空间来存储数据和元数据。如果磁盘空间已满,索引可能会被设置为只读状态。你需要释放磁盘空间,让Elasticsearch可以继续写入数据。分片不均衡: 如果你的集群中的...

DevOps, Docker 暂无评论 阅读(944)

filebeat按docker容器名创建不同的索引

直接看配置:processors: - add_cloud_metadata: ~ - add_docker_metadata: ~ - drop_event: when.or: - equals: container.name: "filebeat" - equals: container.name: "kibana" - equals: container.name: "es" - equals: container.name: "redis" - equals: container.name: "elastalert" - equals: container.name: "mysql" - equals:...

DevOps, Docker, 系统架构 暂无评论 阅读(358)

群晖安装opkg

群晖最悲催的一点是不支持诸如 apt yum 之类的软件包管理, 虽然有 ipkg , 但无奈于 ipkg 年久失更, 很多软件都是上古版本, opkg 是 ipkg 的接班人, 上面的软件还在持续更新! 如果能在群晖安装 opkg , 对我们的群晖无异于如虎添翼!百度一圈竟然没找到群晖的相关安装教程, 所以我这个应该是全网首发了, 希望大家能支持.为了节约大家的时间和避免无聊的回复, 本文不设隐藏!! 仅供和大家做有意义的交流和分享. 虽然我知道这样本贴一定会石沉大海, 但是为了净化论坛环境我自愿做出牺牲. (ps. 强烈建议管理员变更顶贴...

群晖 暂无评论 阅读(1,434)

traefik负载均衡/滚动升级

docker-compose.ymlversion : '3'services: reverse-proxy: # The official v2 Traefik docker image image: traefik:v2.10 # Enables the web UI and tells Traefik to listen to docker command: # insecure - --api.insecure=true - --providers.docker # Create an entrypoint "http" listening on port 80 - --entrypoints.http.address=:80 # Create an entrypoint "https" listening on port 443 - --entrypoints.https.add...

Docker 暂无评论 阅读(336)