![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
zzxap
.......
展开
-
Dockerfile创建Docker镜像
Dockerfile是一个文本格式的配置文件,用户可以使用Dockerfile快速创建自定义的镜像。一、Dockerfile基本结构Dockerfile由一行行命令语句组成,并且支持以#开头的注释行。一般而言,Dockerfile分为 四部分基础镜像信息 维护者信息 镜像操作指令 容器启动时执行指令(1)Dockerfile之Nginx示例在centos父镜像基础上安装...原创 2018-03-31 01:08:38 · 4458 阅读 · 0 评论 -
golang 简易分布式集群
能够发送/接收请求和响应能够连接到集群如果无法连接到群集(如果它是第一个节点),则可以作为主节点启动节点每个节点有唯一的标识能够在节点之间交换json数据包接受命令行参数中的所有信息(将来在我们系统升级时将会很有用)package mainimport ( "fmt" "strconv" "time" "math/rand" "...原创 2018-03-28 21:44:48 · 6506 阅读 · 0 评论 -
golang lock 锁
There are two different issues in your logic: the first one is how the slice itself is being manipulated, and the second one regards actual concurrency problems.For the slice manipulation, simply pa...原创 2018-07-25 12:13:12 · 1764 阅读 · 0 评论 -
golang 并发超时控制经典例子
package mainimport ( "context" "fmt" "time")func main() { ctx := context.Background() timeout := 50*time.Millisecond ctx, cancel := context.WithTimeout(ctx, timeout)...原创 2019-03-19 10:59:23 · 1037 阅读 · 0 评论 -
istio envoy 黑名单配置
static_resources: listeners: - name: "ingress listener" address: socket_address: address: 0.0.0.0 port_value: 9001 filter_chains: ...原创 2019-07-24 10:33:51 · 924 阅读 · 0 评论 -
网络安全渗透面试题
常规渗透渗透测试有哪几阶段?@whereistehnarwhal, reddit 风险评估、漏洞评估和渗透测试之间有什么区别?@whereistehnarwhal, reddit 运行 nmap 扫描时,指定从哪个源端口扫描,通常可以绕过防火墙规则?@jstnkndy 写一个 Nmap 命令,要求使用 SYN 扫描,它不进行 DNS 查找,不 ping 主机,只返回 tcp/139...原创 2019-08-09 14:43:09 · 2106 阅读 · 0 评论