博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: 临时改法:select @@GLOBAL.sql_mode;查询当前mysql的模式去掉ONLY_FULL_GROUP_BY重新设置:set @@GLOBAL.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_D 阅读全文
posted @ 2020-08-08 00:29 MrSharp 阅读(243) 评论(0) 推荐(0)
摘要: elasticsearch查询中使用filter查询添加query_string格式为: { "query_string": { "analyze_wildcard": true, "query": "name:local or test or test0 } } 多个条件时or一定要用大写OR,不 阅读全文
posted @ 2020-08-05 10:20 MrSharp 阅读(1357) 评论(0) 推荐(0)
摘要: 下载grafana源码:https://github.com/grafana/grafana 前端: 安装node.js,安装完自带npmnpm install -g yarnyarn install --pure-lockfileyarn start npm设置国内源:npm config set 阅读全文
posted @ 2020-08-04 12:53 MrSharp 阅读(372) 评论(0) 推荐(0)
摘要: 主要原因是,新添加的磁盘空间没有分配,系统识别不出来,导致不能开机。 解决方法: 找到虚拟机的文件路径地址,默认是C:\Users\用户名\Documents\Virtual Machines\CentOS7 64 位 找到其中的磁盘配置文件 之后查看多出来的磁盘标识如下: 删除多出的磁盘标识,保存 阅读全文
posted @ 2020-08-03 18:36 MrSharp 阅读(7916) 评论(1) 推荐(0)
摘要: 设置代理: export http_proxy="http://proxy-com" export https_proxy="https://proxy-com:" 取消代理: unset http_proxy unset https_proxy 阅读全文
posted @ 2020-07-21 10:00 MrSharp 阅读(468) 评论(0) 推荐(1)
摘要: 主要原因是docker容器中的时间用的是标准时间,不是用的宿主机的时间。 修改方法: docker run -e TZ="Asia/Shanghai" -d -p 80:80 --name nginx nginx-image 阅读全文
posted @ 2020-07-19 22:57 MrSharp 阅读(315) 评论(0) 推荐(0)
摘要: 1.查看自己idea版本,2019.1.2,必须安装相同版本的插件 2.从http://plugins.jetbrains.com/plugin/6317-lombok-plugin中下载对应版本的lombok压缩包 3.依次进入IDEA-->Settings/Preferences-->Plugi 阅读全文
posted @ 2020-06-08 10:16 MrSharp 阅读(2702) 评论(0) 推荐(0)
摘要: storm启动本地集群调试时,有时会找不到rocksdbjni.dll,storm加载该库的时候会先从jkd的bin下找rocksdbjni.dll,如果找不到就从pom文件的依赖包里找,再找不到就会报错,这个时候在pom文件里引入下面的包就可以了 <dependency> <groupId>org 阅读全文
posted @ 2020-06-05 12:43 MrSharp 阅读(607) 评论(0) 推荐(0)
摘要: 问题一: mybatisPlus完全兼容mybatis,一般来说直接替换掉就可以了,如果mybatis的数据源不能取消创建的话,就注掉mybatisplus的数据源 //@Configurationpublic class DataSourceConfig {// @Bean(name="dataS 阅读全文
posted @ 2020-06-05 12:35 MrSharp 阅读(2572) 评论(0) 推荐(0)
摘要: docker images 查看所有镜像 docker ps 查看运行的容器 docker ps -a 查看所有容器 docker stop containerName 停止容器 docker rm containerName 删除容器 阅读全文
posted @ 2020-04-28 11:35 MrSharp 阅读(157) 评论(0) 推荐(0)