上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: ingress 注释常用功能总结 --annotations-prefix # 特定于 NGINX 控制器的入口注释的前缀。(默认“nginx.ingress.kubernetes.io”) 1、域名重定向 这个配置会把www.hr.com跳转到www.ehr.com。 # 主要配置 nginx.i 阅读全文
posted @ 2024-03-12 11:54 Gshelldon 阅读(399) 评论(0) 推荐(0)
摘要: systemctl disable myservice.service systemctl stop myservice.service systemctl status myservice.service rm -fr /usr/lib/systemd/system/myservice.servi 阅读全文
posted @ 2024-03-08 10:36 Gshelldon 阅读(418) 评论(0) 推荐(0)
摘要: # mysql 迁移 docker run -d --name=mysql \ -e TZ=Asia/Shanghai \ -e MYSQL_ROOT_PASSWORD=qwer1234 \ -p 3306:3306 \ -v /opt/mysql:/var/lib/mysql \ mysql:5. 阅读全文
posted @ 2024-02-27 17:05 Gshelldon 阅读(55) 评论(0) 推荐(0)
摘要: 关闭了持久化,和对客户端的链接进行了简单的调优,使用的是本地存储。 redis.conf: |- dir /tmp #appendonly yes #appendfsync everysec #auto-aof-rewrite-percentage 100 #auto-aof-rewrite-min 阅读全文
posted @ 2024-02-27 17:01 Gshelldon 阅读(38) 评论(0) 推荐(0)
摘要: 1、下载官方yaml 做简单的修改把安装的命名空间放在kube-system中。 修改默认存储的path路径为:/data/local-path-sc。 wget https://raw.githubusercontent.com/rancher/local-path-provisioner/mas 阅读全文
posted @ 2024-02-26 12:28 Gshelldon 阅读(229) 评论(0) 推荐(0)
摘要: 文章目录 目录文章目录一、创建 Namespace二、创建 ServiceAccount三、创建 Namespace 的 RBAC 权限1、方式一:使用系统提供角色分配 Namespace 权限2、方式二:使用自定义角色分配 Namespace 权限四、解决登录 Dashboard 不能选择 Nam 阅读全文
posted @ 2024-02-01 16:35 Gshelldon 阅读(232) 评论(0) 推荐(0)
摘要: nginx的https证书自动续期 本文讲述 nginx 的 https 证书如何自动续期。顺便讲述如何手动续期,如何方便地管理所有域名证书。有很多实现方案,包括收费方案和免费方案,本文采用的是 acme.sh 方案。 1. 安装 acme 客户端 需要将系统环境切换到root用户下执行,否则安装证 阅读全文
posted @ 2024-01-17 16:20 Gshelldon 阅读(4273) 评论(0) 推荐(0)
摘要: Nginx基于基本身份认证的文件服务 1、配置文件 server { listen 80; server_name jili.kaikai.com; location / { root /opt/jili; autoindex on; charset utf-8; auth_basic "authe 阅读全文
posted @ 2023-09-21 08:41 Gshelldon 阅读(77) 评论(0) 推荐(0)
摘要: # nsenter的使用 ```bash $ nsenter --help 用法: nsenter [选项] [ [...]] 以其他程序的名字空间运行某个程序。 选项: -a, --all enter all namespaces -t, --target 要获取名字空间的目标进程 -m, --m 阅读全文
posted @ 2023-08-03 15:35 Gshelldon 阅读(159) 评论(0) 推荐(0)
摘要: ```bash #!/bin/bash export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin' USER=admin2 PASS=L4bAWUye2A4JNN! DB_NAME=ng_kboss_person 阅读全文
posted @ 2023-07-14 09:41 Gshelldon 阅读(117) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 18 下一页