使用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...
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...
调用企微接口报403 API Forbiden 无权限 的错误
https://work.weixin.qq.com/wework_admin/frame#/customer/analysis 需要修改应用权限 :
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...
kibana查询统计
统计关键词数量 :GET /docker-wecom-crm-api-2023.09/_search?q=message:"不存在外部联系人的关系"{ "size": 0, "query": { "match_all": { } }}
解决es报错:blocked by: [FORBIDDEN/12/index read-only / allow delete (api) ]
Elasticsearch中的 "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];" 错误通常表示你的索引处于只读状态,不允许读取操作,但允许删除操作。这可能是由于一些情况导致的,比如磁盘空间已满、集群健康状况等。这个错误可能有多个原因,下面是一些可能的解决方法:磁盘空间已满: Elasticsearch在索引数据的时候需要足够的磁盘空间来存储数据和元数据。如果磁盘空间已满,索引可能会被设置为只读状态。你需要释放磁盘空间,让Elasticsearch可以继续写入数据。分片不均衡: 如果你的集群中的...
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:...
群晖安装opkg
群晖最悲催的一点是不支持诸如 apt yum 之类的软件包管理, 虽然有 ipkg , 但无奈于 ipkg 年久失更, 很多软件都是上古版本, opkg 是 ipkg 的接班人, 上面的软件还在持续更新! 如果能在群晖安装 opkg , 对我们的群晖无异于如虎添翼!百度一圈竟然没找到群晖的相关安装教程, 所以我这个应该是全网首发了, 希望大家能支持.为了节约大家的时间和避免无聊的回复, 本文不设隐藏!! 仅供和大家做有意义的交流和分享. 虽然我知道这样本贴一定会石沉大海, 但是为了净化论坛环境我自愿做出牺牲. (ps. 强烈建议管理员变更顶贴...
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中的mysql
docker exec mysql /bin/bash -c 'mysqldump -uroot -pPASSWORD --databases confluence ' >/mnt/home/brucehe/confluence/backup/confluence_`date +%F`.sql;gzip /mnt/home/brucehe/confluence/backup/confluence_`date +%F`.sql;crontab表达试:sudo crontab -e0 1 * * * backupmysql.sh #每天晚上1点执行 注意:一定要删除命令(docker exec -it)中的 -it, 因为-it会开启新的终端,而cron表达试及service等不支持交互试的命令执行。