[root@lucifer ~]# curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
但是很多内网环境不支持外网连接,即使是临时开通部署后,后续运维也可能会遇到报错:
1
failed to start: fetch /timestamp.json from mirror(https://tiup-mirrors.pingcap.com) failed: download from https://tiup-mirrors.pingcap.com/timestamp.json failed: Get “https://tiup-mirrors.pingcap.com/timestamp.json”: dial tcp: lookup tiup-mirrors.pingcap.com on 114.114.114.114:53: read udp 192.168.52.2:44673->114.114.114.114:53: i/o timeout
查看镜像源配置:
1 2 3
## 代表为官方镜像源 [root@lucifer ~]# tiup mirror show https://tiup-mirrors.pingcap.com
建议内网环境部署完成后,切换为本地离线镜像源,方便运维。
离线部署
准备 TiUP 离线组件包
首先,找一台可以连接外网的主机,在线安装 TiUP 包管理器工具:
1
[root@lucifer ~]# curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
[root@prod1 ~]# tiup list Available components: Name Owner Description ---- ----- ----------- PCC pingcap A tool used to capture plan changes among different versions of TiDB alertmanager pingcap Prometheus alertmanager bench pingcap Benchmark database with different workloads blackbox_exporter pingcap Blackbox prober exporter br pingcap TiDB/TiKV cluster backup restore tool. cdc pingcap CDC is a change data capture tool for TiDB chaosd pingcap An easy-to-use Chaos Engineering tool used to inject failures to a physical node client pingcap Client to connect playground cloud pingcap CLI tool to manage TiDB Cloud cluster pingcap Deploy a TiDB cluster for production ctl pingcap TiDB controller suite dba pingcap dbatoolset demo pingcap The dataset import tools for the demo of TiDB diag pingcap Clinic client for data collection and quick health check dm pingcap Data Migration Platform manager dm-master pingcap dm-master component of Data Migration Platform. dm-worker pingcap dm-worker component of Data Migration Platform. dmctl pingcap dmctl component of Data Migration Platform. drainer pingcap The drainer componet of TiDB binlog service dumpling pingcap Dumpling is a CLI tool that helps you dump MySQL/TiDB data. errdoc pingcap Document about TiDB errors grafana pingcap Grafana is the open source analytics \u0026 monitoring solution for every database influxdb pingcap InfluxDB insight pingcap TiDB-Insight collector node_exporter pingcap Exporter for machine metrics package pingcap A toolbox to package tiup component pd pingcap PD is the abbreviation for Placement Driver. It is used to manage and schedule the TiKV cluster. pd-recover pingcap PD Recover is a disaster recovery tool of PD, used to recover the PD cluster which cannot start or provide services normally. playground pingcap Bootstrap a local TiDB cluster for fun prometheus pingcap The Prometheus monitoring system and time series database pump pingcap The pump componet of TiDB binlog service pushgateway pingcap Push acceptor for ephemeral and batch jobs server pingcap TiUP publish/cache server spark pingcap Spark is a fast and general cluster computing system for Big Data sync-diff-inspector pingcap sync-diff-inspector is a tool used to verify the consistency across different MySQL-compatible data sources. tidb pingcap TiDB is an open source distributed HTAP database compatible with the MySQL protocol. tidb-dashboard pingcap TiDB Dashboard is a Web UI for monitoring, diagnosing, and managing the TiDB cluster tidb-lightning pingcap TiDB Lightning is a tool used for fast full import of large amounts of data into a TiDB cluster tiflash pingcap The TiFlash Columnar Storage Engine tikv pingcap Distributed transactional key-value database, originally created to complement TiDB. tikv-br pingcap TiKV cluster backup restore tool tikv-cdc pingcap TiKV-CDC is a change data capture tool for TiKV tikv-importer pingcap tiproxy pingcap TiProxy is a database proxy that is based on TiDB. tispark pingcap tispark tiup pingcap TiUP is a command-line component management tool that can help to download and install TiDB platform components to the local system
检查当前镜像源:
1 2
[root@prod1 ~]# tiup mirror show /root/tidb-community-server-v8.5.3-linux-amd64