会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zipon
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
35
下一页
2020年7月6日
nginx做linux服务时,日志有权限提示没权限(nginx: [emerg] open() "/home/www/log/error.log" failed)
摘要: 关闭selinux 1.关闭 selinux ( setenforce 0 )(临时解决方案) setenforce 0 2./etc/sysconfig/selinux 中修改 第一行生效的部分为“SELINUX=disabled”(永久,生效后重启,阿里云是这种方案)
阅读全文
posted @ 2020-07-06 14:48 zipon
阅读(1335)
评论(0)
推荐(0)
2020年6月8日
rabbitmq异常删除host数据,重新重启创建
摘要: #!/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
阅读(413)
评论(0)
推荐(0)
2020年6月5日
golang macaron解决跨域
摘要: 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
阅读(432)
评论(0)
推荐(0)
2020年6月3日
git切换仓库地址
摘要: 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
阅读(3387)
评论(0)
推荐(0)
2020年5月28日
golang rabbitmq 工具类
摘要: 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
阅读(502)
评论(0)
推荐(0)
2020年5月27日
百度技巧
摘要:
阅读全文
posted @ 2020-05-27 10:49 zipon
阅读(124)
评论(0)
推荐(0)
2020年5月25日
windows统计代码量-cloc
摘要: 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
阅读(813)
评论(0)
推荐(0)
缓存穿透、缓存击穿、缓存雪崩
摘要: 总结: 缓存穿透是指缓存和数据库中都没有的数据,而用户不断发起请求,如发起为id为“-1”的数据或id为特别大不存在的数据。这时的用户很可能是攻击者,攻击会导致数据库压力过大。 缓存击穿是指缓存中没有但数据库中有的数据(一般是缓存时间到期),这时由于并发用户特别多,同时读缓存没读到数据,又同时去数据
阅读全文
posted @ 2020-05-25 10:46 zipon
阅读(128)
评论(0)
推荐(0)
2020年5月23日
算法学习
摘要: 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
阅读(193)
评论(0)
推荐(0)
2020年5月16日
golang map数组根据某个字段值排序
摘要: 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
阅读(3967)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
35
下一页
公告