上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 参考地址:https://github.com/acmesh-official/acme.sh/wiki/说明 在需要部署证书的网站机器上执行 curl https://get.acme.sh | sh -s email=my@example.com cd /root/.acme/ bash acm 阅读全文
posted @ 2022-01-20 17:23 缺个好听的昵称 阅读(130) 评论(0) 推荐(0)
摘要: rancher部署K8S对内核有要求,要求5.4以上版本的内核 cat >update-kernel.sh <<EOF #!/bin/bash sudo yum install -y https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noa 阅读全文
posted @ 2022-01-03 14:48 缺个好听的昵称 阅读(559) 评论(0) 推荐(0)
摘要: maven是一个采用纯Java编写的开源工具 采用一种被称为project object Mode(POM)概念来管理项目,所有的项目配置信息都被定义在一个叫POM.xml的文件中,公告该文件Maven可以管理项目的整个生命周期,包括清除、测试、报告、打包、部署等等maven和ant都是软件构建工具 阅读全文
posted @ 2022-01-02 15:06 缺个好听的昵称 阅读(136) 评论(0) 推荐(0)
摘要: # 删除空目录 /bin/find /data/backup/ -name "*" -type f -size 0c | xargs -n 1 rm -f >/dev/null 2>&1 & /bin/find /data/backup/ -type d -empty | xargs rm -rf 阅读全文
posted @ 2021-12-27 10:11 缺个好听的昵称 阅读(140) 评论(0) 推荐(0)
摘要: 脚本形式 #!/bin/bash #查询索引 echo `curl -s -XGET http://172.21.91.64:9200/_cat/indices?v -w '\n'` #只保留30天内的日志索引(删除30天前一天的日志) retain_time=$(date -d "30 days 阅读全文
posted @ 2021-12-16 14:58 缺个好听的昵称 阅读(381) 评论(0) 推荐(0)
摘要: Linux部署 开源项目地址:https://github.com/filebrowser/filebrowser 依赖于docker-compose yum install -y epel-release yum install -y docker-compose 创建数据库文件,这个文件空内容即 阅读全文
posted @ 2021-12-12 23:48 缺个好听的昵称 阅读(1538) 评论(0) 推荐(0)
摘要: #!/bin/sh pods=`kubectl get pods -n prod |grep $1|awk '{print \$1}'` for pod in $pods do echo $pod; kubectl exec -it --tty -n prod $pod -- cat /sys/fs 阅读全文
posted @ 2021-11-29 09:57 缺个好听的昵称 阅读(179) 评论(0) 推荐(0)
摘要: # 每天0点执行这个脚本,用于切割nginx日志 for pod in $(kubectl get pods -n service-a | grep gateway | awk '{print $1}'); do kubectl exec -ti -n service-a $pod -- /bin/ 阅读全文
posted @ 2021-11-24 15:15 缺个好听的昵称 阅读(511) 评论(0) 推荐(0)
摘要: cat /app/nginx/conf/nginx.conf user www; worker_processes auto; events { worker_connections 65535; } http { include mime.types; default_type applicati 阅读全文
posted @ 2021-11-13 12:22 缺个好听的昵称 阅读(588) 评论(0) 推荐(0)
摘要: #!/bin/bash /bin/kubeadm alpha certs renew all cd cp /root/.kube/config /root/.kube/bak-config-$(date +%F) #备份原来的文件 /bin/\cp /etc/kubernetes/admin.con 阅读全文
posted @ 2021-10-09 10:20 缺个好听的昵称 阅读(315) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页