摘要: 由于近期公司打算做一个小游戏平台,能提供稳定服务,方便迁移,技术选型,理由如下 1.本人只擅长erlang 和golang , 2.以前在某鸦物联网公司待过,对emqx这套消息处理开发还有所了解 3.emqx单台链接就能达到100万左右,加上erlang语言特性就贼稳 4.单个小游戏服不用考虑链接压 阅读全文
posted @ 2020-10-24 11:31 浮生逍遥 阅读(529) 评论(0) 推荐(0) 编辑
摘要: unset GOPROXY && export GOPRIVATE=git.xq5.com && go run service.go 阅读全文
posted @ 2021-04-15 14:36 浮生逍遥 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 解析go gc根源 root区域主要是程序运行当前时刻的栈和全局数据区域 https://cloud.tencent.com/developer/article/1766782 阅读全文
posted @ 2021-03-04 13:59 浮生逍遥 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 在chrome 网站的设置里允许所有cookie 步骤可按照下面,但是还得设置其他参数 https://jingyan.baidu.com/article/f006222874ca0efbd3f0c88d.html 再设置 在chrome浏览器中输入 chrome://flags/ 然后设置这个几个 阅读全文
posted @ 2021-01-13 11:39 浮生逍遥 阅读(3793) 评论(0) 推荐(1) 编辑
摘要: go tool compile -S main.go $ go tool compile -S main.go "".main STEXT size=163 args=0x0 locals=0x40 ... 0x0059 00089 (main.go:6) MOVQ AX, 16(SP) 0x005 阅读全文
posted @ 2020-12-05 18:19 浮生逍遥 阅读(128) 评论(0) 推荐(0) 编辑
摘要: pprof 工具功能就不多说了 mac系统解说 : 看了网上方法进行一次小白步骤解说,网上很多讲的太简略了 1首先在你的main项目里加代码,这两个库为必须导入的 import( "net/http" _ "net/http/pprof" ) func main() { //log 初始化 go f 阅读全文
posted @ 2020-11-13 14:51 浮生逍遥 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 这是因为网卡未设置权限 sudo chmod 777 /dev/bpf* 再打wireshark即可 阅读全文
posted @ 2020-11-09 18:02 浮生逍遥 阅读(927) 评论(0) 推荐(0) 编辑
摘要: //origin原数组 count 随机取出的个数,最终返回一个count容量的目标数组 func MicsSlice(origin []int64, count int) []int64 { tmpOrigin := make([]int64, len(origin)) copy(tmpOrigi 阅读全文
posted @ 2020-11-09 14:35 浮生逍遥 阅读(3799) 评论(0) 推荐(0) 编辑
摘要: 1 下载并安装MySQL官方的 Yum Repository wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-releas 阅读全文
posted @ 2020-10-27 13:48 浮生逍遥 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 服务端订阅离线topic(正常非正常都会收到)即可 离线topic $SYS/brokers/+/clients/+/disconnected 上线topic $SYS/brokers/+/clients/+/connected 如果上下线都想收到消息 订阅这个topic $SYS/brokers/ 阅读全文
posted @ 2020-10-24 15:55 浮生逍遥 阅读(2795) 评论(0) 推荐(0) 编辑