tidb4.0.6离线安装

2021-05-19 16:29:06 浏览数 (1)

下载tidb-community-server-v4.0.6

https://download.pingcap.org/tidb-community-server-v4.0.6-linux-amd64.tar.gz

解压安装组件

代码语言:javascript复制
version=v4.0.6

tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
sh tidb-community-server-${version}-linux-amd64/local_install.sh
source .bash_profile

检测

代码语言:javascript复制
which tiup

创建集群

先创建topology.yaml文件,如下

代码语言:javascript复制
# # Global variables are applied to all deployments and used as the default value of
# # the deployments if a specific deployment value is missing.
global:
  user: "tidb"
  ssh_port: 22
  deploy_dir: "/tidb-deploy"
  data_dir: "/tidb-data"

server_configs:
  pd:
    replication.enable-placement-rules: true

pd_servers:
  - host: 10.0.1.4
  - host: 10.0.1.5
  - host: 10.0.1.6
tidb_servers:
  - host: 10.0.1.7
  - host: 10.0.1.8
  - host: 10.0.1.9
tikv_servers:
  - host: 10.0.1.1
  - host: 10.0.1.2
  - host: 10.0.1.3
tiflash_servers:
  - host: 10.0.1.10
    data_dir: /data1/tiflash/data,/data2/tiflash/data
cdc_servers:
  - host: 10.0.1.6
  - host: 10.0.1.7
  - host: 10.0.1.8
monitoring_servers:
  - host: 10.0.1.4
grafana_servers:
  - host: 10.0.1.4
alertmanager_servers:
  - host: 10.0.1.4

执行

代码语言:javascript复制
tiup cluster deploy tidb-dev v4.0.6 ./topology.yaml -i ~/.ssh/id_rsa --user root

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/100328.html原文链接:

0 人点赞