自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(39)
  • 资源 (1)
  • 收藏
  • 关注

原创 k8s安装kubesphere错误:unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the s

[root@k8s-master ~]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f2021-03-01T13:51:31Z INFO : shell-operator v1.0.0-beta.52021-03-01T13:51:31Z INFO : HTTP SE...

2021-03-01 21:58:56 3594

原创 k8s安装kubesphere失败原因和解决方法

提示信息:fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install ks-openldap /etc/kubesphere/openldap-ha -f /etc/kubesphere/custom-values-openldap.yaml –set fullnameOverride=openldap –namespace kubesphere-system\n”, “

2021-02-07 21:47:01 9001 3

原创 Idea快捷键Ctrl+shift+F失效解决方法(win10)

Idea快捷键Ctrl+shift+F失效是由于跟微软输入法的快捷键冲突导致的。

2020-12-26 14:03:50 3122

原创 error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0])

[root@mbs01 k8s]# kubectl apply -f ingress-tomcat6.yamlerror: error validating “ingress-tomcat6.yaml”: error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field “serviceName” in io.k8s.api.extensions.v1beta1.HTTPIngressPa

2020-12-20 19:18:41 7680

原创 helm Error: incompatible versions client[v2.17.0] server[v2.16.3]

[root@mbs01 k8s]# helm install --namespace openebs --name openebs stable/openebs --version 1.5.0Error: incompatible versions client[v2.17.0] server[v2.16.3][root@mbs01 k8s]# ls /usr/local/bin/helm tiller[root@mbs01 k8s]# helm versionClient: &vers

2020-12-20 16:59:31 1406 1

原创 [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-cal

[root@mbs02 ~]# kubeadm join 192.168.201.101:6443 --token 9qmbs7.v2szx4s7cut32cce –discovery-token-ca-cert-hash sha256:ec7f6547ddb40ac71b5c0ba560cacb96df09e8bc4b4fe9b744eff1bdf0997341W1220 12:47:12.713721 12808 join.go:346] [preflight] WARNING: JoinCon

2020-12-20 12:58:51 4029 4

原创 Get http://localhost:10248/healthz: dial tcp: lookup localhost on 8.8.8.8:53: no such host.

[root@mbs01 ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEregistry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy v1.17.3 ae853e93800d

2020-12-20 12:30:13 3156 1

原创 One of the configured repositories failed (added from: https://download.docker.com/linux/centos/dock

[mbs@mbs01 yum.repos.d]$ yum clean all[mbs@mbs01 ~]$ sudo yum install -y docker-ce docker-ce-cli containerd.ioLoaded plugins: fastestmirror, product-id, search-disabled-reposLoading mirror speeds from cached hostfile* base: mirrors.bfsu.edu.cn* extr..

2020-12-18 21:37:26 1396 1

原创 This system is not registered with an entitlement server. You can use subscription-manager to regist

[mbs@mbs01 ~]$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo[sudo] password for mbs:Loaded plugins: fastestmirror, product-id, subscription-managerThis system is not registered with an entitlement server. Y.

2020-12-18 21:12:17 322 1

原创 SpringBoot通过@Value注解无法注入properties配置文件中的值的问题和解决方法

场景如下:1.在项目的application.properties文件下新增配置app: config: task: {1: 2, 3: 4}2.新建一个java类:import lombok.Getter;import org.springframework.beans.factory.annotation.Value;import org.springframework.context.annotation.Configuration;import org.spri

2020-12-16 22:59:01 1814 1

原创 centos7同步时间

root用户权限下运行如下三条命令:yum install -y ntpdate # 安装ntpdatentpdate time.windows.com#同步最新的时间date# 查看时间

2020-12-16 22:20:34 137

原创 安装nvm备忘录

下载nvm地址:https://github.com/coreybutler安装结束。在nvm目录下编辑settings.txt文件,如下:root: D:\nvmpath: D:\nodejsnode_mirror: https://npm.taobao.org/mirrors/node/npm_mirror: https://npm.taobao.org/mirrors/npm/

2020-12-02 18:34:17 130

原创 Maven把jar包安装到本地仓库中

Microsoft Windows [版本 10.0.19042.572](c) 2020 Microsoft Corporation. 保留所有权利。C:\dev>mvn install:install-file -Dfile="C:\dev\Sdk4J.jar" -DgroupId=com.tengxun -DartifactId=sdk4J -Dversion=1.0 -Dpackaging=jar[INFO] Scanning for projects...Downloading f

2020-11-26 16:21:06 254

原创 swagger提示No operations defined in spec!的原因和解决方案

swagger界面获取api信息时出现如下问题:出现这个问题是由于项目启动时无法扫描到相关类导致的,我的项目出现这个问题是因为我改动了包名导致,因为我在配置文件中配置了:swagger.terms-of-service-url=com....修改为要扫描的包路径(@Api等swagger注解的包路径)就好了。Mark!!!...

2020-11-23 19:48:32 28888 1

原创 apollo在linux上部署启动报错问题

apollo地址:http://localhost:8070http://localhost:8080http://localhost:8090问题描述:运用命令:./demo.sh start 后出现服务在120s内无法启动的问题。其实跟你配置的host映射有关。可以查看下自己的linux目录下(/etc/hosts): cat /etc/hosts修改demo.sh文件:vi ./demo.sh# meta server urlconfig_server_url=ht.

2020-11-22 21:04:57 896

原创 Spring Cloud微服务项目工程无法导入EnableEurekaClient注解问题

springboot的版本号:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version></parent>springcloud的版本号:<depend

2020-11-21 22:47:26 872

原创 mysql 报错msvcp120.dll

下载微软运行库合集,下载安装完成后,即可解决运行库丢失的问题。http://www.winwin7.com/soft/xtbd-216.html

2020-11-21 01:31:04 182 1

原创 idea gradle 在控制台输出中文乱码解决方式

操作步骤:idea菜单栏找到:help->Edit Custom VM Options,在打开文件中追加:-Dfile.encoding=UTF-8详情访问:https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004976119-idea-build-console-display-Chinese-in-garbled-code...

2020-07-02 14:02:58 6586 3

原创 google浏览器开启暗黑模式

效果图如下:步骤:1.桌面找到google chrome图标右键->属性在后面加上: --force-dark-mode2.浏览器设置选择enable后右下角点击launch重启浏览器即可

2020-06-16 17:06:42 7054 1

原创 idea 2020.1.1使用gradle构建项目build sync fail:Starting Gradle Daemon...问题的解决方法

使用gradle构建项目build sync fail,只是输出:Starting Gradle Daemon...就没了,这是由于本机安装了多个jdk版本导致gradle的javaHome变量不一致。由于idea窗口并没有输出详细日志,只是输出了:Starting Gradle Daemon...就没了,我们可以如下图操作:打开可以找到idea.log。打开改文件可查看详细的信息。具体的idea log报错信息如下:2020-06-11 19:00:21,250 [ 33121] ..

2020-06-11 20:46:34 14828 2

原创 电脑无法读取外接硬盘修复

电脑无法读取外接硬盘,出现如下问题:以管理员身份打开cmd窗口,运行命令:chkdsk L: /F , L表示是那个盘。修复L盘直接执行这个命令,当修复M盘时,将命令中的L改为M,后执行命令即可。运行结果如下:C:\WINDOWS\system32>chkdsk L: /F文件系统的类型是 NTFS。卷标是 软件。阶段 1: 检查基本文件系统结构...删除损...

2020-02-27 19:29:34 11593 2

原创 处理MySQL本地密码过期方法

在windows上打开cmd窗口(快捷键:win键+r)输入命令: mysql -uroot -p -h 127.0.0.1 ,回车。如下图所示:然后设置密码,命令:set PASSWORD = PASSWORD('123456'); 123456是你要设置的密码,可以替换成你将要设置的密码。如图:至此可以使用navicat连接你的数据库了。如何设置mys...

2019-12-14 16:42:37 219

原创 在IntelliJ Idea中的terminal中执行javac XX.class编译java类时出现错误: 编码GBK的不可映射字符的解决方法

当我们想在IntelliJ Idea中的terminal窗口中对java类(运行指令:javac XX.class)进行编译时出现了如下错误:D:\workspace>javac XX.javaXX.java:10: 错误: 编码GBK的不可映射字符 * 杈撳嚭缁撴灉锛? ^XX.java:16: 错误: 编码GBK的不可映...

2019-12-06 10:42:33 1208

原创 Spring Boot 2.1.X版本以上使用高版本的MySQL出现The server time zone value错误解决方法。

出现报错如下:2019-02-27 20:39:30.742 ERROR 13484 --- [reate-479442206] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://localhost:3306/cloud-product?useUnicode=...

2019-02-27 20:50:15 1667

原创 idea实现优雅import(类似eclipse)

打开idea 的 file -&gt; settings ,界面如下:修改完毕后,点击右下角的apply,ok即可。

2018-12-03 15:23:53 1326

原创 IntellIJ Idea 修改内存大小

平时工作中经常会遇到idea内存不足的问题,我们可以通过两种方法对idea的内存大小进行修改的。第一种方法:打开idea,操作如下图所示:打开一个新的窗口如下:xmx:设置idea的内存大小,本人设置2G,可根据自身需要设置。然后重启即可。第二种方法:直接修改idea的vm options打开新窗口如下:根据自己的需要进行修改保存重启idea即可。也...

2018-11-30 12:38:41 103378 10

原创 Idea工具类文件大小限制导致无法解释该类问题

由于idea默认的类大小是2500(2.5m),导致无法导入包,如下图:解决方法:打开idea的help-&gt;edit custom properties创建一个idea.properties,追加:idea.max.intellisense.filesize=5000然后重启idea即可...

2018-05-02 09:59:08 15471 3

原创 sqlMapConfig.xml配置报错1

The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvid

2017-11-29 11:41:57 733

原创 mysql:java.sql.SQLException:Field 'XXXX' doesn't hava a default value问题

java.sql.SQLException:Field 'XXXX' doesn't hava a default value出现这个异常的原因决解方法:1.sql添加的字段类型是int类型的,默认可设为0;2.sql添加的字段类型是String类型的,默认可设为NULL;

2017-11-27 13:59:33 1580

原创 linux上安装redis(单机版)

1.打开xshell连接linux虚拟机,登陆root账号。2.安装gcc,因为redis是c++编写的。命令:yum -y install gcc-c++3.wget方式下载redis压缩包,并解压和编译。  在xshell输入命令:wget http://download.redis.io/releases/redis-3.2.11.tar.gz        或者 yum -y in...

2017-10-30 00:09:59 425

原创 xshell卸载注册表删除问题

只要把这个目录彻底删除掉就行了。

2017-10-28 16:44:01 47553 11

原创 MySQL通过IP来访问数据库的权限解决方法

Enter password: ******Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 397Server version: 5.7.17-log MySQL Community Server (GPL)Copyright (c) 2000, 201

2017-07-25 16:13:54 631

原创 maven创建项目报错问题

报错显示如下:Description ResourcePath LocationTypeThe container 'Maven Dependencies' references non existing library 'C:\Users\CCai\.m2\repository\com\github\pagehelper\pagehelper\3.4.2-fix\pagehelp

2017-07-14 18:40:18 8836 3

原创 com.microsoft.sqlserver.jdbc.SQLServerException: 将截断字符串或二进制数据。

org.springframework.dao.DataIntegrityViolationException: ### Error updating database.  Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 将截断字符串或二进制数据。### The error may involve ParkEnDaySum.s

2017-06-26 13:59:05 17305 3

原创 js正则表达式之一

经度: -180.0~+180.0(整数部分为0~180,必须输入1到5位小数)正则表达式: /^[\-\+]?(0?\d{1,2}\.\d{1,5}|1[0-7]?\d{1}\.\d{1,5}|180\.0{1,5})$/纬度: -90.0~+90.0(整数部分为0~90,必须输入1到5位小数)正则表达式: /^[\-\+]?([0-8]?\d{1}\.\d{1,

2017-06-15 16:34:56 298

原创 MySQL访问权限问题之1130

当我们用例外一台电脑访问本机上的MySQL数据库时,出现如下错误:1130 - Host 'pc-PC' is not allowed to connect to this MySQL server .如图:出现这样错误的原因是我们在本机上默认安装的MySQL数据库是只限于本机进行数据库连接的,是不允许外来IP进行访问的。要解决这个问题,那就要修改数据库的访问权限。打开数据库的客户

2017-05-27 13:55:11 440

原创 Mybatis中的SQL的日期比较异常错误之一

报错信息:2017-05-23 11:05:28.044[http-nio-8080-exec-2] ERRORorg.mybatis.spring.MyBatisSystemException: nested exception isorg.apache.ibatis.builder.BuilderException: Error evaluating expression 'o

2017-05-23 13:56:43 3175

原创 Linux上安装apache-tomcat-8.5.15服务器

在Linux虚拟机下安装apache-tomcat-8.5.15的步骤。1.下载apache-tomcat-8.5.15到自己的Windows系统的桌面上apache-tomcat-8.5.15的下载网址为:http://tomcat.apache.org/download-80.cgi,截图如下:2.把下载到的apache-tomcat-8.5.15.tar.gz复制到Linux

2017-05-22 13:47:15 8559

原创 Linux虚拟机上安装jdk1.8.0

Linux

2017-05-20 12:04:58 19417 9

dubbo-admin.war-2.5.4.rar

dubbo-admin.war-2.5.4.rar,dubbo管理平台war包。欢迎下载。

2018-10-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除