上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 39 下一页
摘要: # 查看用户所属哪个组 groups 用户名 #查看当前有哪些用户运行程序 ps -aux|awk '{print $1}'|sort -rn|uniq -c|sort -rn # 清理不再使用的用户、组 userdel -r 用户名 groupdel 用户组 # 开启pam权限认证: echo " 阅读全文
posted @ 2019-12-13 14:44 Done、 阅读(804) 评论(0) 推荐(0) 编辑
摘要: k8s证书反解 1、将k8s配置文件(kubelet.kubeconfig)中client-certificate-data:内容拷贝 2、echo "client-certificate-data:内容"|base64 -d > 123.pem 3、展示证书内容:cfssl-certinfo -c 阅读全文
posted @ 2019-12-12 18:01 Done、 阅读(783) 评论(0) 推荐(0) 编辑
摘要: # 安装 nginx yum install nginx -y # 配置nginx4层代理 /etc/nginx/nginx.conf stream { upstream kube-apiserver { server 10.4.7.21:6443 max_fails=3 fail_timeout= 阅读全文
posted @ 2019-12-10 17:16 Done、 阅读(801) 评论(0) 推荐(0) 编辑
摘要: nginx二级目录高级配置: location ~ .*\.(html)$ { expires 1m; error_page 404 = /test/index.html; access_log /data/log/test.access.log main; } location ~ .*\.(js 阅读全文
posted @ 2019-12-09 17:13 Done、 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: # 安装证书生成软件 wget https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 -O /usr/bin/cfssl wget https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 -O /usr/bin/cfssl 阅读全文
posted @ 2019-12-09 16:40 Done、 阅读(331) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 39 下一页