单机部署,我装过很多了次了,最好用root用户装,也就是–user root,你可以启用root用户并允许ssh,可以不建tidb用户,安装时候自动会添加。
你的报错是ssh连不上,密码错误等
配置文件如下,你直接复制用就行,最简单的1pd 1tidb 1tikv模拟
然后执行检查修复
tiup cluster check ./topo.yaml --apply --user root -p
部署
tiup cluster deploy tidb-test 7.5.0 ./topo.yaml --user root -p
启动
tiup cluster start tidb-test
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/tidb-deploy"
data_dir: "/tidb-data"
# # Monitored variables are applied to all the machines.
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
instance.tidb_slow_log_threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
replication.location-labels: ["host"]
tiflash:
logger.level: "info"
pd_servers:
- host: 127.0.0.1
tidb_servers:
- host: 127.0.0.1
tikv_servers:
- host: 127.0.0.1
port: 20160
status_port: 20180
config:
server.labels: { host: "logic-host-1" }
monitoring_servers:
- host: 127.0.0.1
grafana_servers:
- host: 127.0.0.1