[root@qinxi ~]# curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8608k 100 8608k 0 0 6586k 0 0:00:01 0:00:01 --:--:-- 6591k WARN: adding root certificate via internet: https://tiup-mirrors.pingcap.com/root.json You can revoke this by remove /root/.tiup/bin/7b8e153f2e2d0928.root.json Set mirror to https://tiup-mirrors.pingcap.com success Detected shell: bash Shell profile: /root/.bash_profile /root/.bash_profile has been modified to add tiup to PATH open a new terminal or source /root/.bash_profile to use it Installed path: /root/.tiup/bin/tiup =============================================== Have a try: tiup playground ===============================================
[root@qinxi ~]# source .bash_profile
[root@qinxi ~]# tiup playground --db 2 --kv 3 The component `playground` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/playground-v1.2.5-linux-amd64.tar.gz 8.28 MiB / 8.28 MiB 100.00% ? p/s Starting component `playground`: /root/.tiup/components/playground/v1.2.5/tiup-playground --db 2 --kv 3 Use the latest stable version: v4.0.8
Specify version manually: tiup playground <version> The stable version: tiup playground v4.0.0 The nightly version: tiup playground nightly
Playground Bootstrapping... The component `prometheus` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/prometheus-v4.0.8-linux-amd64.tar.gz 39.84 MiB / 39.84 MiB 100.00% 17.11 MiB p/s download https://tiup-mirrors.pingcap.com/grafana-v4.0.8-linux-amd64.tar.gz 54.25 MiB / 54.25 MiB 100.00% 15.26 MiB p/s Start pd instance The component `pd` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/pd-v4.0.8-linux-amd64.tar.gz 38.85 MiB / 38.85 MiB 100.00% 17.67 MiB p/s Start tikv instance The component `tikv` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/tikv-v4.0.8-linux-amd64.tar.gz 135.46 MiB / 135.46 MiB 100.00% 12.91 MiB p/s Start tikv instance Start tikv instance Start tidb instance The component `tidb` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/tidb-v4.0.8-linux-amd64.tar.gz 39.16 MiB / 39.16 MiB 100.00% 17.60 MiB p/s Start tidb instance Waiting for tidb 127.0.0.1:4000 ready ... ⠏ Waiting for tidb 127.0.0.1:4000 ready ... Done Waiting for tidb 127.0.0.1:4001 ready ... Done Waiting for tikv 127.0.0.1:20160 ready ... Done Waiting for tikv 127.0.0.1:20161 ready ... Done Waiting for tikv 127.0.0.1:20162 ready ... Done Start tiflash instance The component `tiflash` is not installed; downloading from repository. download https://tiup-mirrors.pingcap.com/tiflash-v4.0.8-linux-amd64.tar.gz 360.61 MiB / 360.61 MiB 100.00% 12.09 MiB p/s Waiting for tiflash 127.0.0.1:3930 ready ... ⠴ Waiting for tiflash 127.0.0.1:3930 ready ... ⠏ Logging debug to /root/.tiup/data/SJVO2Hp/tiflash-0/log/tiflash.log Logging errors to /root/.tiup/data/SJVO2Hp/tiflash-0/log/tiflash_error.log ... Waiting for tiflash 127.0.0.1:3930 ready ... Error TiFlash failed to start: store 127.0.0.1:3930 failed to up after timeout(180s) CLUSTER START SUCCESSFULLY, Enjoy it ^-^ To connect TiDB: mysql --host 127.0.0.1 --port 4000 -u root To connect TiDB: mysql --host 127.0.0.1 --port 4001 -u root To view the dashboard: http://127.0.0.1:2379/dashboard To view the Prometheus: http://127.0.0.1:9090 To view the Grafana: http://127.0.0.1:3000