1 2 3 4 5 ··· 10 下一页

2024年7月16日

自签证书

摘要: #!/bin/bash# 生成私钥openssl genpkey -algorithm RSA -out private.key# 生成证书请求openssl req -new -key private.key -out certificate.csr# 自签名证书openssl x509 -req 阅读全文

posted @ 2024-07-16 17:39 HowOldAreYou 阅读(1) 评论(0) 推荐(0) 编辑

ubantu初始化配置

摘要: 配置网络wxx@k8s-master01:~$ more /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity'network: ethernets: ens33: dhcp4 阅读全文

posted @ 2024-07-16 17:38 HowOldAreYou 阅读(1) 评论(0) 推荐(0) 编辑

centos阿里yum源配置

摘要: 一、elrepo源 简介 The ELRepo Project focuses on hardware related packages to enhance your experience with Enterprise Linux. This includes filesystem driver 阅读全文

posted @ 2024-07-16 08:36 HowOldAreYou 阅读(5) 评论(0) 推荐(0) 编辑

2024年3月22日

启用 .NET Framework 3.5

摘要: 可以在启用 .NET Framework 3.5 功能时,将 Windows 安装媒体用作文件源。 为此,请按照下列步骤操作: 插入 Windows 安装媒体。(https://zhuanlan.zhihu.com/p/616060244) 在提升的命令提示符处,运行下面的命令: 控制台复制 Dis 阅读全文

posted @ 2024-03-22 10:53 HowOldAreYou 阅读(26) 评论(0) 推荐(0) 编辑

2023年12月27日

EFK(更新中)

摘要: nginx日志配置 log_format access_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"r 阅读全文

posted @ 2023-12-27 15:12 HowOldAreYou 阅读(2) 评论(0) 推荐(0) 编辑

prometheus监控运行在k8s中的java应用

摘要: 想要监控k8s中的Java应用总共分以下几步 下载并配置监控组件jmx_exporter Dockerfile编写、docker build构建、上传harbor prometheus配置 1、下载jmx_exporter,下载地址https://github.com/prometheus/jmx_ 阅读全文

posted @ 2023-12-27 11:09 HowOldAreYou 阅读(172) 评论(0) 推荐(0) 编辑

2023年11月22日

删除Terminating状态的ns

摘要: finalizer导致namespace Terminating 1 namespace资源对象的spec.finalizer[] 列表中不为空 解决办法:手动清理 $ kubectl get ns NS-NAME -o json > delete-NA-NAME.json vim delete-N 阅读全文

posted @ 2023-11-22 10:28 HowOldAreYou 阅读(59) 评论(0) 推荐(0) 编辑

2020年9月8日

shell脚本自动封禁和解IP

摘要: 要求 1、每分钟检查一次日志/data/app/nginx/logs/access_json.log。格式如下 2、把一分钟内访问次数大于100的给封禁 3、封禁的日志记录到文件 4、每隔30分钟检查一次被封IP,将符合条件(访问次数小于5次)的解封 5、解封的IP也记录到文件 实现 封禁IP 查找 阅读全文

posted @ 2020-09-08 10:27 HowOldAreYou 阅读(978) 评论(0) 推荐(1) 编辑

2020年9月7日

nginx反向代理和ip透传

摘要: nginx反向代理 反向代理:reverse proxy,可代理外网用户的请求到内部的指定web服务器,并将数据返回给用户 nginx除了可以在企业提供高性能的web服务之外,另外还可以将本身不具备的请求通过某种预定义的协议转发至其它服务器处理,不同的协议就是nginx服务器与其他服务器进行通信的一 阅读全文

posted @ 2020-09-07 16:39 HowOldAreYou 阅读(12080) 评论(0) 推荐(0) 编辑

2020年9月6日

shell脚本-批量添加用户

摘要: 批量添加用户,要求如下 脚本一:不是很严格但是很简洁的脚本 #!/bin/bash #该脚本用来实现批量添加用户。 # #作者阿鑫 #日期2019/5/27 #版本v1 #提示用户脚本使用方法 [ $# -eq 0 ] && echo "Usage useradd.sh number" && exi 阅读全文

posted @ 2020-09-06 10:12 HowOldAreYou 阅读(1481) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 10 下一页

导航