前言
TIDB版本v5.0.1,安装环境CentOS 8
1.在官网下载社区版 https://download.pingcap.org/tidb-community-server-v5.0.1-linux-amd64.tar.gz
2.解压tar zxvf tidb-community-toolkit-v5.0.1-linux-amd64.tar.gz
3.进入tidb-community-server-v5.0.1-linux-amd64
目录运行local_install.sh
4.source /root/.bash_profile
5.tiup cluster template > topology.yaml
6.修改 topology.yaml文件内容,我这里直接用的root用户
例如:
global:
user: "root"
ssh_port: 22
deploy_dir: "/tidb-deploy"
data_dir: "/tidb-data"
arch: "amd64"
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
pd_servers:
- host: 192.168.16.44
# - host: 192.168.16.45
tidb_servers:
- host: 192.168.16.44
# - host: 192.168.16.45
tikv_servers:
- host: 192.168.16.44
# - host: 192.168.16.45
tiflash_servers:
- host: 192.168.16.44
monitoring_servers:
- host: 192.168.16.44
grafana_servers:
- host: 192.168.16.44
alertmanager_servers:
- host: 192.168.16.44