上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 129 下一页
摘要: docker ps --no-trunc |egrep ela 阅读全文
posted @ 2021-01-27 17:37 滴滴滴 阅读(313) 评论(0) 推荐(0)
摘要: 1.容器中不要使用root账号 gosu是个工具,用来提升指定账号的权限,作用与sudo命令类似,而docker中使用gosu的起源来自安全问题; docker容器中运行的进程,如果以root身份运行的会有安全隐患,该进程拥有容器内的全部权限,更可怕的是如果有数据卷映射到宿主机,那么通过该容器就能操 阅读全文
posted @ 2021-01-27 17:35 滴滴滴 阅读(2637) 评论(0) 推荐(1)
摘要: Shell 中的set --用法 set 命令为 shell 设定参数变量。许多命令的输出是以空格分隔的值,如果要使用其中的某个数据域,使用 set 非常有效。 #!/bin/shecho the date is $(date)set $(date)echo the month is $2输出:th 阅读全文
posted @ 2021-01-27 17:33 滴滴滴 阅读(4098) 评论(0) 推荐(0)
摘要: 1. fork ( /directory/script.sh) :如果shell中包含执行命令,那么子命令并不影响父级的命令,在子命令执行完后再执行父级命令。子级的环境变量不会影响到父级。 fork是最普通的, 就是直接在脚本里面用/directory/script.sh来调用script.sh这个 阅读全文
posted @ 2021-01-27 16:00 滴滴滴 阅读(328) 评论(0) 推荐(0)
摘要: kubectl -n kube-system delete pod traefik-ingress-lb-bc45b7649-rvgxd --force --grace-period=0 kubectl get pod|awk -F'[ ]+' '$3~/Terminating/{print $1} 阅读全文
posted @ 2021-01-25 09:47 滴滴滴 阅读(1604) 评论(0) 推荐(0)
摘要: kubectl get podNAME READY STATUS RESTARTS AGEhostaliases-pod 0/1 Completed 0 117s 阅读全文
posted @ 2021-01-25 09:42 滴滴滴 阅读(4917) 评论(0) 推荐(0)
摘要: 官方原文: Disabling SELinux by running setenforce 0 is required to allow containers to access the host filesystem, which is required by pod networks for e 阅读全文
posted @ 2021-01-21 11:40 滴滴滴 阅读(5242) 评论(0) 推荐(1)
摘要: export GOPROXY="https://goproxy.cn"export GO111MODULE="on" 阅读全文
posted @ 2021-01-18 17:19 滴滴滴 阅读(136) 评论(0) 推荐(0)
摘要: { "inbounds": [{ "port": 1080, // SOCKS 代理端口,在浏览器中需配置代理并指向这个端口 "listen": "127.0.0.1", "protocol": "socks", "settings": { "udp": true } }], "outbounds" 阅读全文
posted @ 2021-01-18 17:08 滴滴滴 阅读(254) 评论(0) 推荐(0)
摘要: Seven7707 2018-09-05 16:53:40 73417 收藏 16 分类专栏: nginx 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/felix_yujing/article/details/51682655 昨天一个开发找我帮 阅读全文
posted @ 2021-01-18 14:13 滴滴滴 阅读(853) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 129 下一页