自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(63)
  • 收藏
  • 关注

原创 wangeditor富文本编辑器如何设置默认字体,字体大小...

如何在初始化时,设置一个默认的字体、字号

2024-02-25 21:14:24 2231 2

原创 There was an error loading the pipeline from the Jenkinsfile in this repository.

There was an error loading the pipeline from the Jenkinsfile in this repository. Correct the error by editing the Jenkinsfile using the declarative syntax then commit it back to the repository.

2022-07-12 11:12:38 2627 5

原创 mybatis使用注解,当有参数列表报nested exception is org.apache.ibatis.binding.BindingException: Parameter

nestedexceptionisorg.apache.ibatis.binding.BindingException:Parameter'fileId'notfound.Availableparametersare[fileIds,param1]

2022-06-21 10:40:50 315

原创 centos访问window共享目录

window共享文件夹

2022-03-11 10:52:20 2634

原创 git pull代码报错 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

git pull SSL_ERROR_SYSCALL

2022-03-05 11:08:54 2581

原创 minio 上传文件报错: x509: certificate signed by unknown authority

x509: certificate signed by unknown authority

2022-02-11 18:02:40 1640

原创 minio TLS 访问方式,x509错误,生成证书少IP

1. x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "Acme Co")2. x509: certificate is valid for

2022-02-11 14:59:46 3818 2

原创 go-zero出现retrying of unary invoker failed或者Auto sync endpoints failed

Auto sync endpoints failed

2022-01-29 11:20:52 6364

原创 kubectl二级命令自动补全

kubectl tab键命令补齐

2022-01-26 14:41:44 874

原创 弄懂Golang GC、三色标记、混合写屏障机制

弄懂Golang GC、三色标记、混合写屏障机制

2021-12-27 17:05:56 1153

原创 golang &^

golang &^

2021-12-22 10:03:44 393

原创 shell字符串截取方式

shell性能最好截取字符串方式

2021-12-18 15:33:09 706 1

原创 golang常见面试题

golang面试,常问的面试题

2021-12-17 13:37:44 640

原创 新节点加入k8s集群

新节点加入到kubernetes集群

2021-12-16 10:38:24 1473

原创 mysql过过水-------事务与隔离级别

mysql事务ACID和四大隔离级别

2021-12-15 15:43:15 918

原创 iptables防火墙

四表/五链、数据包匹配流程、编写 iptables 规则

2021-12-07 14:49:35 317

原创 kubenetes master ip地址变了 Error getting node“ err=“node \“master\“ not found

1. cd /etc/kubernetes/manifests, 将etcd.yaml kube-apiserver.yaml里的ip地址替换为新的ip# oldIP之前IP地址# newIP 新的IP地址sed -i 's/oldIP/newIP/g' /etc/kubernetes/manifests/etcd.yamlsed -i 's/oldIP/newIP/g' /etc/kubernetes/manifests/kube-apiserver.yaml2 cd $HOME/.kube/

2021-11-28 11:28:48 20723

原创 shell面试相关题型

1. 删除文档中的注释和空白行# 方法1 egrep## ^ 以什么开头## $ 以什么结束egrep -v '#|^$' /etc/ssh/sshd_config# 方法2 sed## -r 扩展正则## //d 删除sed -r '/#|^$/d' /etc/ssh/sshd_config# 方法3 awkawk '!/#|^$/' /etc/ssh/sshd_config...

2021-11-28 10:49:57 335

原创 k8s ip地址变了 报错Error getting node“ err=“node \“master\“ not found

1. 重置kubeadmkubeadm reset2. 初始kubeadm initrm -fr $HOME/.kube/config# --apiserver-advertise-address 更改后的地址kubeadm init \--apiserver-advertise-address=192.168.92.128 \--image-repository registry.aliyuncs.com/google_containers \--kubernetes-versio

2021-11-25 10:34:24 22836 2

原创 使用 git clone 拉取github失败的解决方案

1. Failed connect to github.com:443; Connection refused可能是DNS解析污染导致无法获取正确的IP查找IP方法: 打开https://websites.ipaddress.com/github.com添加hostscat >>/etc/hosts <<EOF140.82.113.3 github.comEOF2. TCP connection reset by peergit版本过低导致

2021-11-05 18:42:58 2413

原创 kubernetes资源管理(3)

资源管理方式命令式对象管理: 直接使用命令操作kubernetes资源kubectl run nginx-pod --image=nginx:1.17.1 --port=80命令式对象配置: 通过命令配置和配置文件去操作kubernetes资源kubectl create/patch -f nginx-pod.yaml声明式对象配置: 通过apply命令和配置文件去操作kubernetes资源kubectl apply -f nginx-pod.yamllabel操作

2021-10-10 22:13:58 44

原创 kubernetes集群搭建(2)

安装docker# 参考阿里云# https://developer.aliyun.com/mirror/docker-ce?spm=a2c6h.13651102.0.0.3e221b11RIrnWN# 编辑daemoncat > /etc/docker/daemon.json <<EOF{"exec-opts": ["native.cgroupdriver=systemd"]}EOF安装kubernetes组件# kubernetes镜像# https://de

2021-10-07 23:04:37 78

原创 kubernetes环境初始化准备(1)

环境初始化1 检查操作系统的版本cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)主机名解析cat >>/etc/hosts <<EOF192.168.43.128 master192.168.43.129 node1192.168.43.130 node2EOF时间同步# k8s要求集群中的节点时间必须精确一致systemctl start chronydsystemct

2021-10-06 15:07:24 94

原创 /dev/mapper/centos-root扩容

1. 查看磁盘使用情况df -h# 结果Filesystem Size Used Avail Use% Mounted ondevtmpfs 475M 0 475M 0% /devtmpfs 487M 0 487M 0% /dev/shmtmpfs 487M 7.7M 479M 2% /runtmpfs

2021-08-18 00:51:19 463

原创 docker搭建redis集群部署

创建网络主要是用于redis集群能与外界进行网络通信docker network create redis --subnet 172.38.0.0/16创建redis配置文件#!/bin/bashBASEDIR=$(cd "$(dirname "$0")";pwd)echo ${BASEDIR}for port in $(seq 1 6);\do \mkdir -p ${BASEDIR}/node-${port}/{conf,data}touch ${BASEDIR}/node-${p

2021-07-25 15:56:37 111 1

原创 docker相关操作

一 镜像相关命令# 1. 查看镜像docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest d1165f221234 3 months ago 13.3kBREPOSITORY 镜像源称TAG 标签IMAGE ID 镜像IDCREATED 创建时间SIZE 大小# 2. 查看所有镜像I

2021-07-25 15:33:59 47

原创 kafka集群搭建

一 zookeeper集群搭建先确保Linux已经安装java环境,可以使用java --version命令查看,推荐安装JDK1.8或以上版本下载 https://mirrors.bfsu.edu.cn/apache/zookeeper/,搭建集群使用的是这个apache-zookeeper-3.5.9-bin.tar.gz版本# 在Linux系统创建目录 softmkdir /soft# 进入soft目录cd /soft# 如果下载在win下可以使用rz上传文件(若在Lin

2021-07-05 01:43:27 70

原创 docker镜像与容器的基本命令

一 镜像相关命令# 1. 查看镜像docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest d1165f221234 3 months ago 13.3kBREPOSITORY 镜像源称TAG 标签IMAGE ID 镜像IDCREATED 创建时间SIZE 大小# 2. 查看所有镜像I

2021-07-03 16:17:56 46

原创 saltstack安装与操作(一)

1. saltstack安装https://repo.saltproject.io/#rhelsudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pubcurl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/latest.repo | sudo tee /etc/yum.repos.d/salt.repoyu

2021-07-02 00:46:29 94

原创 centos改变文件系统访问时间的方式

1 经过时间周期(86400),访问时自动更改时间2 修改文件内容,访问时更改时间3 touch

2020-10-19 20:41:50 184

原创 linux系统文件属性操作

chmod(文件属性修改)// 递归修改目录及子目录权限chmod -R 700 dir/chown(所属修改)chown [user]:|.[group] [-R] filename// 递归修改目录及子目录所属属性chown -R root.root dir/ACL(文件的访问控制列表)ACL高级特性Defaultdefault:继承setfacl 设置ACL属性# 赋予vigour 对/opt已存在的有读写执行权限setfacl -R -m u:vigour:rwx

2020-09-06 17:09:13 139

原创 vim常用操作

1.   命令光标的跳转G           跳转页面顶部gg         跳转光页面尾部Ngg       N代表跳到第几行$          行尾^    &nbs

2020-08-27 21:06:25 132

原创 window10与虚拟机共享一个文件目录

1. 虚拟机—> 设置—> 选项—> 共享文件夹(添加目录)在这里插入图片描述2 安装yum install open-vm-tools-devel -y3 创建目录mkdir -p /mnt/hgfs4 执行vmhgfs-fuse .host:/ /mnt/hgf

2020-05-10 15:46:59 699

原创 centos 7 关闭selinux

1 查看selinux状态cat /etc/selinux/config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced. ...

2020-04-25 17:33:10 286

原创 centos7安装mongodb

1. 下载curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz2. 解压tar -zxvf mongodb-linux-x86_64-3.0.6.tgz3. 移动到指定位置# 命名mv mongodb-linux-x86_64-3.0.6/ mongodb/# 移动mv mon...

2020-03-29 23:51:03 106

转载 Centos修改ip方式

1. nmtui2. vim /etc/sysconfig/network-scripts/ifcfg-ens33TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=static # none/static手动获取ip地址 dhcp 动态获取地址DEFROUTE=yesIPV4_FAILURE_FATAL=noI...

2020-03-22 15:07:10 165

原创 cannot find -lstdc++

yum install gcc-c++

2020-02-24 15:02:34 285 1

原创 Golang环境安装

1. 下载 wget https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz tar -zxvf go1.9.2.linux-amd64.tar.gz mv go/ /usr/local/2. 配置 /etc/profile# 添加环境变量GOROOT和将GOBIN添加到PATH中 vi /etc/profile export G...

2020-02-06 13:45:28 95

原创 centOS7最小安装设置网络

(1)点击VMware虚拟机左上角的“编辑”,选择“虚拟网络编译器”。(2)选中VMnet8(NAT模式),再点击右侧的“NAT设置”此时会看到如下界面(3)在命令行中输入:vi /etc/sysconfig/network-scripts/ifcfg-ens33(4)将ONBOOT=no改为yes,将BOOTPROTO=dhcp改为BOOTPROTO=static,并在后面增加几行内容:...

2020-02-06 13:37:55 364

原创 window系统下,设置mongodb远程访问

1. 安装mongodb下找到配置文件mongod.cfg net: port: 27017 bindIp: 127.0.0.1 // 改成 net: port: 27017 bindIp: 0.0.0.02. 找到mongod.exe所在的路径,执行命令mongod.exe --config "f:\mongo\bin\mongod.cfg" -...

2020-01-19 11:17:44 550

空空如也

空空如也

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

TA关注的人

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