Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiDB 数据库快速上手指南
TiDB Quick Start Guide
Question:
In: Deploying a Local Test Cluster, at the end there is a: Note
TiUP Playground by default listens on 127.0.0.1
, making the service accessible only locally; if you need the service to be accessible externally, you can use the --host
parameter to specify the network interface to bind to an externally accessible IP.
By default, it only listens on 127.0.0.1, so you need to specify the IP using the --host
parameter to access it externally.
As a beginner, I didn’t quite understand and always thought it could only be accessed via 127.0.0.1. I wanted to use an IP address but couldn’t initially find where to specify the --host
parameter in the command.
I suggest adding an example below the note:
Note
TiUP Playground running the latest version of the TiDB cluster by default listens on 127.0.0.1
, making the service accessible only locally; if you need the service to be accessible externally, you can use the --host
parameter. For example: tiup playground --host 192.168.0.10
or tiup playground v7.5.0 --db 2 --pd 3 --kv 3 --host 192.168.0.10
to specify the network interface to bind to an externally accessible IP. (Here, 192.168.0.10 is an example IP; you can replace 192.168.0.10 with the actual IP address used in your network.)
As a beginner testing deployment for the first time, I didn’t quite understand, so any feedback is welcome.