Loading

摘要: # 安装 $ docker pull sonatype/nexus3 $ docker run -d -p 8081:8081 --name nexus -v /root/nexus-data:/var/nexus-data --restart=always sonatype/nexus3 $ do 阅读全文
posted @ 2021-06-10 11:46 LB477 阅读(205) 评论(1) 推荐(0) 编辑
摘要: Config apiVersion: v1 kind: ConfigMap metadata: name: postgres-config namespace: postgres labels: app: postgres data: POSTGRES_DB: master POSTGRES_USE 阅读全文
posted @ 2021-06-07 15:34 LB477 阅读(4281) 评论(0) 推荐(0) 编辑
摘要: 一、环境准备(所有) 1. Linux 环境 # 关闭防火墙 systemctl stop firewalld && systemctl disable firewalld # 关闭 swap swapoff -a && sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc 阅读全文
posted @ 2021-06-02 15:17 LB477 阅读(3613) 评论(1) 推荐(0) 编辑
摘要: $ vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08) $ yum -y remove vim* # https://github.com/vim/vim/releases $ wget h 阅读全文
posted @ 2021-05-24 11:38 LB477 阅读(223) 评论(1) 推荐(0) 编辑
摘要: 一、函数基础 函数由函数声明关键字 func、函数名、参数列表、返回列表、函数体组成 函数是一种类型。函数类型变量可以像其他类型变量一样使用,可以作为其他函数的参数或返回值,也可以直接调用执行 函数名首字母大小写决定了其包可见性 参数和返回值需用()包裹,如果返回值是一个非命名的参数,则可省略。函数 阅读全文
posted @ 2021-05-20 18:11 LB477 阅读(340) 评论(1) 推荐(0) 编辑
摘要: 1. yum 安装 $ yum -y install epel-release $ yum -y install golang $ go version go version go1.15.5 linux/amd64 2. 二进制包安装 下载:https://golang.org/dl/ $ wge 阅读全文
posted @ 2021-05-18 17:48 LB477 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Redis 节点分别维护自己负责的槽和对应的数据。伸缩原理:Redis 槽和对应数据在不同节点之间移动 环境:CentOS7 搭建 Redis 集群 一、集群扩容 1. 手动扩容 (1) 准备节点 9007,并加入集群 192.168.11.40:9001> cluster meet 192.168 阅读全文
posted @ 2021-05-14 11:05 LB477 阅读(890) 评论(0) 推荐(0) 编辑
摘要: yum -y install gcc wget http://download.redis.io/releases/redis-6.0.9.tar.gz tar -zxvf redis-6.0.9.tar.gz cd redis-6.0.9 make make install PREFIX=/usr 阅读全文
posted @ 2021-05-11 15:31 LB477 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一、手动搭建 1. 准备节点 CentOS7 安装 Redis 节点数量至少为 6 个才能保证组成完整高可用的集群 (1) 目录结构 cluster ├── 9001 │ ├── data │ │ ├── appendonly.aof │ │ └── nodes-9001.conf │ ├── re 阅读全文
posted @ 2021-05-11 15:09 LB477 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 安装 & 升级 yum install gcc -y gcc -v # 4.8.5 yum install centos-release-scl -y # 下载 gcc8(可安装多个版本的 devtoolset) yum install devtoolset-8-gcc* -y # 切换到 gcc8 阅读全文
posted @ 2021-05-10 20:25 LB477 阅读(621) 评论(0) 推荐(0) 编辑