上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页
摘要: 关闭selinux 1.关闭 selinux ( setenforce 0 )(临时解决方案) setenforce 0 2./etc/sysconfig/selinux 中修改 第一行生效的部分为“SELINUX=disabled”(永久,生效后重启,阿里云是这种方案) 阅读全文
posted @ 2020-07-06 14:48 zipon 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 删除元数据 rm -rf /var/lib/rabbitmq/mnesia # 重启rabbitmq rabbitmqctl stop systemctl restart rabbitmq-server # 添加用户 rabbitmqctl add_user admin 阅读全文
posted @ 2020-06-08 10:50 zipon 阅读(394) 评论(0) 推荐(0) 编辑
摘要: m.Handlers(func(ctx *macaron.Context) { ctx.Resp.Header().Set("Access-Control-Allow-Origin","*") ctx.Resp.Header().Set("Access-Control-Allow-Headers", 阅读全文
posted @ 2020-06-05 12:02 zipon 阅读(421) 评论(0) 推荐(0) 编辑
摘要: git remote set-url origin URL 或者 git remote rm origin git remote add origin URL git remote -v查看现在仓库信息 阅读全文
posted @ 2020-06-03 14:49 zipon 阅读(3365) 评论(0) 推荐(0) 编辑
摘要: package mq import ( "bytes" "errors" "github.com/streadway/amqp" "strings" ) var conn *amqp.Connection var channel *amqp.Channel var exchanges string 阅读全文
posted @ 2020-05-28 15:03 zipon 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-27 10:49 zipon 阅读(115) 评论(0) 推荐(0) 编辑
摘要: cloc.exe下载地址 https://github.com/AlDanial/cloc#Quick_Start https://sourceforge.net/projects/cloc/ cloc -exclude-dir=node_modules,dist,log,vendor E:\go\ 阅读全文
posted @ 2020-05-25 12:09 zipon 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 总结: 缓存穿透是指缓存和数据库中都没有的数据,而用户不断发起请求,如发起为id为“-1”的数据或id为特别大不存在的数据。这时的用户很可能是攻击者,攻击会导致数据库压力过大。 缓存击穿是指缓存中没有但数据库中有的数据(一般是缓存时间到期),这时由于并发用户特别多,同时读缓存没读到数据,又同时去数据 阅读全文
posted @ 2020-05-25 10:46 zipon 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 3、 package main import ( "fmt" ) func max(x int, y int) int { if x < y { return y } return x } // 窗口滑动 解决子串问题 // 获取最长非重复子串 示例: "acdfeabac" > "acdfe" f 阅读全文
posted @ 2020-05-23 11:06 zipon 阅读(184) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "fmt" "math/rand" "sort" "strconv" "zentaotimer/libs/github.com/wonderivan/logger")type MapsSort struct { Key string MapList []ma 阅读全文
posted @ 2020-05-16 16:33 zipon 阅读(3917) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页