在appstore中下载: 然后进行设置: 常用命令 复制内容:Win+C粘贴内容:Shift+Win+V

  jE8iBWyhLcsg   2023年12月02日   25   0   0 mac复制多文本macpasteeasy

如果把一个项目/微服务当成一个消费组,那么一个topic可能在多个消费组【一个topic被多个项目订阅】,一个消费组可能有多个topic。【一个项目订阅了多个topic】。一个消费组内的消费者个数也就是消费并行度。 当然一个项目/微服务也可能是多个消费组。 查看消费组下面的消费者 kafka-consumer-groups.sh./kafka-consumer-groups.sh--bootstrap-serverip--describe--grouplogistics 查询topic: kafka-topics.sh./kafka-topics.sh--zookeeperip--topicc...

  jE8iBWyhLcsg   2023年11月02日   59   0   0 微服务Kafka常用操作

发现golangstrings包中没有javastring.substring方法,于是尝试了下:想要在java中实现提取“世”的需求 //java代码 Strings="Hello,世界"; System.out.println(s.substring(7,8));//世 在golang中尝试这样: //golang代码 s1:="Hello,世界" fmt.Println(s1[7:8])//� 因为golang按照utf-8编码,一个汉字可能占用3-4个字节,再次尝试: //golang代码 s1:="Hello,世界" fmt.Println(s1[7:10])//世 可以看出”...

  jE8iBWyhLcsg   2023年11月02日   46   0   0 javasubstringgolang

问题 使用jemter打开jmx文件报错: CannotResolveClassException:eu.luminis.jmeter.wssampler.OpenWebSocketSampler 版本 jdk版本:1.8.0_202jemter版本:apache-jmeter-5.4.3 解决方案 解决方法是下载plugins-manager.jar,放到/lib/ext文件夹下,打开jmx之后缺少的包会自动下载。

  jE8iBWyhLcsg   2023年11月02日   57   0   0 jemter

因为linux没有安装musl,所以需要安装下: sudowgethttps://copr.fedorainfracloud.org/coprs/ngompa/musl-libc/repo/epel-7/ngompa-musl-libc-epel-7.repo-O/etc/yum.repos.d/ngompa-musl-libc-epel-7.repo sudoyuminstall-ymusl-libc-static

  jE8iBWyhLcsg   2023年11月02日   58   0   0 musllinux

在mac上构建go项目成linux平台时候,报错如下: runtime/cgo cgo:Ccompiler"x86_64-linux-musl-gcc"notfound:exec:"x86_64-linux-musl-gcc":executablefilenotfoundin$PATH 因为没有安装musl包,执行下面命令安装即可: brewinstallmusl-cross

  jE8iBWyhLcsg   2023年11月02日   41   0   0 muslcgolinux

在~/.zshrc中加入,如果没有就创建一个: setoptno_nomatch 然后更新下: source/.zshrc

  jE8iBWyhLcsg   2023年11月02日   54   0   0 zsh

执行gitmerge--abort即可。

  jE8iBWyhLcsg   2023年11月02日   32   0   0 git

第一步:点开插件管理 第二步:在可用插件里面选择以下三个 第三步添加需要的监听器

  jE8iBWyhLcsg   2023年11月02日   55   0   0 性能测试压力测试jmeter监听器

hexodeploy时候,发现报错: remote:SupportforpasswordauthenticationwasremovedonAugust13,2021.remote:Pleaseseehttps://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositoriescloning-with-https-urlsforinformationoncurrentlyrecommendedmodesofauthentication. 致命错误:'https://github.com/x...

  jE8iBWyhLcsg   2023年11月02日   47   0   0 hexogithub

golang内置了pprof功能,非常方便和强大,分别有“runtime/pporf”和“net/http/pprof”包来支持。我们这里用http-server来演示。 第一步:引入net/http/pprof包 packagemain import( "fmt" "log" "net/http" _"net/http/pprof" ) funcmain(){ http.HandleFunc("/",handler) log.Fatal(http.ListenAndServe("localhost:8000",nil)) } funchandler(whttp.Respon...

  jE8iBWyhLcsg   2023年11月02日   121   0   0 golang火焰图性能分析

通过MySQLWorkbench更新一列数据时候(updatexxxseta='123'),报错如下: ErrorCode:1175.YouareusingsafeupdatemodeandyoutriedtoupdateatablewithoutaWHEREthatusesaKEYcolumn.Todisablesafemode,toggletheoptioninPreferences->SQLEditorandreconnect. 因为是安全模式,所以需要关闭安全模式: SETSQL_SAFE_UPDATES=0; 然后在更新即可。也可以根据提示,在Workbench里面修改...

  jE8iBWyhLcsg   2023年11月02日   34   0   0 mysql安全模式mysqlworkbench

在开发中,遇到项目需要引入其他项目的包/当前项目的其他包的时候,可以使用replace命令。 如etcd引入了当前项目的其他包:

  jE8iBWyhLcsg   2023年11月02日   55   0   0 gomodgolangreplace

goland配置如上,既可以debuggolang源码中的单元测试。 这里面有一个有两个有意思的地方是: TestMaxIdleTime单测中,并没有实际连接到外部驱动,那么是怎么测出来真实数据库连接超时呢? 以及database/sql是怎么加载外部驱动的呢?

  jE8iBWyhLcsg   2023年11月02日   77   0   0 golang单元测试

安装MySQL: brewinstallmysql 启动MySQL: brewservicesstartmysql 关闭MySQL: brewservicesstopmysql 重启MySQL: brewservicesrestartmysql 卸载MySQL: brewuninstallmysql

  jE8iBWyhLcsg   2023年11月02日   41   0   0 MySQL关闭mysqlMySQL启动

原因 应用程序在使用驱动的有效空闲连接时候,发现数据库的连接已经失效(因为连接超过wait_timeout时间),用一个失效的连接查数据,所以报错。 解决办法 将sql驱动SetConnMaxLifetime和SetConnMaxIdleTime设置时间,并且小于数据库的wait_timeout时间(单位秒)。 调小wait_timeout。 分析 应用程序配置 数据库配置 分析 SetConnMaxLifetime,SetConnMaxIdleTime wait_timeout maxLifeTime=30s,wait_timeout=20s,如果在25s时候查询,由于空闲...

  jE8iBWyhLcsg   2023年11月02日   56   0   0 数据库配置连接池配置数据库
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~