![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端
星空守望
这个作者很懒,什么都没留下…
展开
-
zabbix Latest data Graph 图表不出来,f12看报500错误
安好了4.0的zabbix,发现所有图表都打不开,报500错误,zabbix版本如下打开httpd /etc/httpd/logs/error_log文件发现,全是一大堆的报错[Mon Feb 22 09:54:05.054842 2021] [:error] [pid 9301] [client 192.168.2.1:52078] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/原创 2021-02-22 10:50:17 · 626 阅读 · 1 评论 -
go极简代码将byte数组转为二进制字符串,不足8位自动填充
需要以二进制的形式查看byte数组,怎么写呢?直接上代码。func BytesToBinaryString(bs []byte) string { buf := bytes.NewBuffer([]byte{}) for _, v := range bs { buf.WriteString(fmt.Sprintf("%08b", v)) } return buf.String()}附上测试用例func TestBytesToBinaryString(t *testing.T) { t原创 2020-12-23 14:17:49 · 2836 阅读 · 0 评论 -
ubuntu使用apt安装包提示 g++ : Depends: g++-5 (>= 5.3.1-3~) but it is not going to be installed 缺少依赖包
我用的windows子系统下的ubuntu,20.04版本,在设置了清华的如下镜像之后,安装g++和gdb总是报错deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universedeb ht原创 2020-10-10 09:43:58 · 9180 阅读 · 6 评论 -
error: unable to recognize “xxx“ : no matches for kind “DaemonSet“ in version “extensions/v1beta1“
我的k8s是1.9版本的安装网络插件时我用如下命令:kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml报错Warning: rbac.authorization.k8s.io/v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; use rbac.authoriz原创 2020-09-14 17:34:33 · 8684 阅读 · 3 评论 -
gsoap c Method ‘xxx‘ not implemented: method name or namespace not recognized
在用gsoap生成webservice接口的C代码后,我用soapui测试接口,得到了如下的错误:Method 'xxx' not implemented: method name or namespace not recognized我百思不得其解,因为我只不过换了个高版本的gsoap来重新生成了代码,老版本就能访问,怎么新版本就不行了呢?是不是soapui根据wsdl解析xml的时候不对?想到这里,我生成代码时也把请求的xml文档生成了,命令如下soapcpp2 -c header.h如果原创 2020-08-26 15:05:00 · 1669 阅读 · 0 评论 -
使用mybatis plus出现There is no getter for property named 'null' in 'xx'
使用mybatis plus的 updateById出现这个错There is no getter for property named ‘null’ in ‘xx’跟踪了代码发现多了个 null 的属性,我感到很奇怪,这时候突然想起会不会是没有加@TableId将实体类的主键字段加上这个注解,解决问题。...原创 2020-01-29 18:01:51 · 11958 阅读 · 4 评论 -
快速入门全文搜索服务 -- solr 7.4.0 (有java的增删改查代码)
solr图示简介 看了上面的图示介绍,你可能会问,那数据库在solr中有什么用呢?是不是有了solr的索引库我们就不需要建立索引库了呢?其实不然 第一,数据库可以作为索引库数据的备份,当索引库损坏时,可以讲数据库中的数据导入到索引库中。 第二,当你要升级solr的版本,这时候原来的索引库已经不能够兼容solr新的版本了,怎么办?没错,从数据库中导入。 安装solrsolr下...原创 2018-09-16 19:45:01 · 1381 阅读 · 1 评论 -
mybatis 加载 mapper 映射文件的三种方式
有一段时间没用过 mybatis 了,今天重温了一下 mybatis,来了解下 mybatis 加载映射文件的三种方式。第一种:通过资源路径加载如果你的 mapper 文件在如图所示的地方你在 mybatis 的配置文件中可以这样加载 mapper<mappers> <mapper resource="com/yangtao9898/jungle_war_server...原创 2018-12-03 19:46:19 · 4174 阅读 · 0 评论