{"id":4297,"date":"2021-02-02T10:23:31","date_gmt":"2021-02-02T02:23:31","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=4297"},"modified":"2021-05-07T13:28:34","modified_gmt":"2021-05-07T05:28:34","slug":"tidb%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/4297","title":{"rendered":"TiDB\u5b66\u4e60\u8bb0\u5f55"},"content":{"rendered":"<p>\u672c\u6587\u8bb0\u5f55\u5b66\u4e9bTiDB\u7684\u8fc7\u7a0b\uff0c\u5305\u62ec\u7ec4\u4ef6\uff0c\u5b89\u88c5\uff0c\u542f\u52a8\uff0c\u505c\u6b62\uff0c\u5378\u8f7d\u7b49\u57fa\u672c\u6b65\u9aa4\u3002\u540e\u7eed\u4e5f\u5c06\u5305\u62ec\u4f7f\u7528\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b35308c5ac\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b35308c5ac\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E7%BB%84%E4%BB%B6%E5%92%8C%E5%90%8D%E8%AF%8D\" >\u7ec4\u4ef6\u548c\u540d\u8bcd<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#TiDB\" >TiDB<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#TiKV\" >TiKV<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#TiFlash\" >TiFlash<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#PD\" >PD<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#TiDB%E5%AE%89%E8%A3%85\" >TiDB\u5b89\u88c5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E4%B8%8B%E8%BD%BDtiup%E5%B7%A5%E5%85%B7\" >\u4e0b\u8f7dtiup\u5de5\u5177<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E8%AE%BE%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F\" >\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E9%80%9A%E8%BF%87tiup%E5%AE%89%E8%A3%85cluster\" >\u901a\u8fc7tiup\u5b89\u88c5cluster<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E6%9F%A5%E7%9C%8Btiup%E7%89%88%E6%9C%AC\" >\u67e5\u770btiup\u7248\u672c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E6%9F%A5%E7%9C%8BTiDB%E5%BD%93%E5%89%8D%E5%8F%AF%E7%94%A8%E7%89%88%E6%9C%AC\" >\u67e5\u770bTiDB\u5f53\u524d\u53ef\u7528\u7248\u672c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#tiDB%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\" >tiDB\u5b89\u88c5\u914d\u7f6e\u6587\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E5%AE%89%E8%A3%85\" >Install<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E6%9F%A5%E7%9C%8B_TiUP_%E7%AE%A1%E7%90%86%E7%9A%84%E9%9B%86%E7%BE%A4%E6%83%85%E5%86%B5\" >\u67e5\u770b TiUP \u7ba1\u7406\u7684\u96c6\u7fa4\u60c5\u51b5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E6%A3%80%E6%9F%A5%E9%83%A8%E7%BD%B2%E7%9A%84_TiDB_%E9%9B%86%E7%BE%A4%E6%83%85%E5%86%B5\" >\u68c0\u67e5\u90e8\u7f72\u7684 TiDB \u96c6\u7fa4\u60c5\u51b5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E5%90%AF%E5%8A%A8tidb%E9%9B%86%E7%BE%A4\" >\u542f\u52a8tidb\u96c6\u7fa4<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E9%AA%8C%E8%AF%81%E9%9B%86%E7%BE%A4%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81\" >\u9a8c\u8bc1\u96c6\u7fa4\u8fd0\u884c\u72b6\u6001<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E5%85%B3%E9%97%ADtidb%E9%9B%86%E7%BE%A4\" >\u5173\u95edtidb\u96c6\u7fa4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.gbase8.cn\/en\/4297\/#%E5%8D%B8%E8%BD%BDtidb%E9%9B%86%E7%BE%A4\" >\u5378\u8f7dtidb\u96c6\u7fa4<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%84%E4%BB%B6%E5%92%8C%E5%90%8D%E8%AF%8D\"><\/span>\u7ec4\u4ef6\u548c\u540d\u8bcd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiDB\"><\/span>TiDB<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5bf9\u5916\u670d\u52a1\uff0c\u89e3\u6790\uff0c\u6267\u884c\u8ba1\u5212\u7b49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiKV\"><\/span>TiKV<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5b58\u50a8\u5f15\u64ce\uff0c\u8d1f\u8d23\u6570\u636e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiFlash\"><\/span>TiFlash<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5217\u5f0f\u7684\u5b58\u50a8\u5f15\u64ce<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"PD\"><\/span>PD<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5143\u6570\u636e\u548c\u96c6\u7fa4\u72b6\u6001\u7ba1\u7406\uff0c\u5305\u62ec\u4e8b\u52a1\u3002\u5efa\u8bae\u5355\u6570\u8282\u70b9\u4ee5\u4fbf\u4e8e\u6295\u7968\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiDB%E5%AE%89%E8%A3%85\"><\/span>TiDB\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%8B%E8%BD%BDtiup%E5%B7%A5%E5%85%B7\"><\/span>\u4e0b\u8f7dtiup\u5de5\u5177<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# curl --proto '=https' --tlsv1.2 -sSf https:\/\/tiup-mirrors.pingcap.com\/install.sh | sh\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100 8697k  100 8697k    0     0  3168k      0  0:00:02  0:00:02 --:--:-- 3168k\nWARN: adding root certificate via internet: https:\/\/tiup-mirrors.pingcap.com\/root.json\nYou can revoke this by remove \/root\/.tiup\/bin\/7b8e153f2e2d0928.root.json\nSet mirror to https:\/\/tiup-mirrors.pingcap.com success\nDetected shell: bash\nShell profile:  \/root\/.bash_profile\n\/root\/.bash_profile has been modified to add tiup to PATH\nopen a new terminal or source \/root\/.bash_profile to use it\nInstalled path: \/root\/.tiup\/bin\/tiup\n===============================================\nHave a try:     tiup playground\n===============================================\n&#91;root@gbase_rh7_001 ~]#<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F\"><\/span>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&#91;root@gbase_rh7_001 ~]# source .bash_profile\n&#91;root@gbase_rh7_001 ~]# cat .bash_profile\n# .bash_profile\n# Get the aliases and functions\nif &#91; -f ~\/.bashrc ]; then\n        . ~\/.bashrc\nfi\n\n# User specific environment and startup programs\n\nPATH=$PATH:$HOME\/bin\n\nexport PATH\n\nexport PATH=\/root\/.tiup\/bin:$PATH\n&#91;root@gbase_rh7_001 ~]# \n&#91;root@gbase_rh7_001 ~]# which tiup\n\/root\/.tiup\/bin\/tiup\n\n&#91;root@gbase_rh7_001 ~]#<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%80%9A%E8%BF%87tiup%E5%AE%89%E8%A3%85cluster\"><\/span>\u901a\u8fc7tiup\u5b89\u88c5cluster<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster\nThe component `cluster` is not installed; downloading from repository.\ndownload https:\/\/tiup-mirrors.pingcap.com\/cluster-v1.3.2-linux-amd64.tar.gz 10.05 MiB \/ 10.05 MiB 100.00% 3.98 MiB p\/s\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster\nDeploy a TiDB cluster for production\n\nUsage:\n  tiup cluster &#91;command]\n\nAvailable Commands:\n  check       Perform preflight checks for the cluster.\n  deploy      Deploy a cluster for production\n  start       Start a TiDB cluster\n  stop        Stop a TiDB cluster\n  restart     Restart a TiDB cluster\n  scale-in    Scale in a TiDB cluster\n  scale-out   Scale out a TiDB cluster\n  destroy     Destroy a specified cluster\n  clean       (EXPERIMENTAL) Cleanup a specified cluster\n  upgrade     Upgrade a specified TiDB cluster\n  exec        Run shell command on host in the tidb cluster\n  display     Display information of a TiDB cluster\n  prune       Destroy and remove instances that is in tombstone state\n  list        List all clusters\n  audit       Show audit log of cluster operation\n  import      Import an exist TiDB cluster from TiDB-Ansible\n  edit-config Edit TiDB cluster config.\nWill use editor from environment variable `EDITOR`, default use vi\n  reload      Reload a TiDB cluster's config and restart if needed\n  patch       Replace the remote package with a specified package and restart the service\n  rename      Rename the cluster\n  enable      Enable a TiDB cluster automatically at boot\n  disable     Disable starting a TiDB cluster automatically at boot\n  help        Help about any command\n\nFlags:\n  -h, --help                help for tiup\n      --ssh string          (EXPERIMENTAL) The executor type: 'builtin', 'system', 'none'.\n      --ssh-timeout uint    Timeout in seconds to connect host via SSH, ignored for operations that don't need an SSH connection. (default 5)\n  -v, --version             version for tiup\n      --wait-timeout uint   Timeout in seconds to wait for an operation to complete, ignored for operations that don't fit. (default 120)\n  -y, --yes                 Skip all confirmations and assumes 'yes'\n\nUse \"tiup cluster help &#91;command]\" for more information about a command.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8Btiup%E7%89%88%E6%9C%AC\"><\/span>\u67e5\u770btiup\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup --binary cluster\n\/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster\n&#91;root@gbase_rh7_001 ~]# <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8BTiDB%E5%BD%93%E5%89%8D%E5%8F%AF%E7%94%A8%E7%89%88%E6%9C%AC\"><\/span>\u67e5\u770bTiDB\u5f53\u524d\u53ef\u7528\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup list tidb\nAvailable versions for tidb:\nVersion        Installed  Release                              Platforms\n-------        ---------  -------                              ---------\nnightly                   2021-02-02T08:45:35+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0                      2020-04-16T16:58:06+08:00            darwin\/amd64,linux\/amd64\nv3.0.0                    2020-04-16T14:03:31+08:00            darwin\/amd64,linux\/amd64\nv3.0.1                    2020-04-27T19:38:36+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.2                    2020-04-16T23:55:11+08:00            darwin\/amd64,linux\/amd64\nv3.0.3                    2020-04-17T00:16:31+08:00            darwin\/amd64,linux\/amd64\nv3.0.4                    2020-04-17T00:22:46+08:00            darwin\/amd64,linux\/amd64\nv3.0.5                    2020-04-17T00:29:45+08:00            darwin\/amd64,linux\/amd64\nv3.0.6                    2020-04-17T00:39:33+08:00            darwin\/amd64,linux\/amd64\nv3.0.7                    2020-04-17T00:46:32+08:00            darwin\/amd64,linux\/amd64\nv3.0.8                    2020-04-17T00:54:19+08:00            darwin\/amd64,linux\/amd64\nv3.0.9                    2020-04-17T01:00:58+08:00            darwin\/amd64,linux\/amd64\nv3.0.10                   2020-03-13T14:11:53.774527401+08:00  darwin\/amd64,linux\/amd64\nv3.0.11                   2020-04-17T01:09:20+08:00            darwin\/amd64,linux\/amd64\nv3.0.12                   2020-04-17T01:16:04+08:00            darwin\/amd64,linux\/amd64\nv3.0.13                   2020-04-26T17:25:01+08:00            darwin\/amd64,linux\/amd64\nv3.0.14                   2020-05-09T21:11:49+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.15                   2020-06-05T16:50:59+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.16                   2020-07-03T20:05:15+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.17                   2020-08-03T15:18:39+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.18                   2020-08-21T19:56:59+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.19                   2020-09-25T18:19:51+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.0.20                   2020-12-25T15:17:43+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.0-beta               2020-05-22T14:35:59+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.0-beta.1             2020-05-22T15:22:30+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.0-beta.2             2020-05-22T15:28:20+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.0-rc                 2020-05-22T15:56:23+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.0                    2020-05-22T15:34:33+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.1                    2020-04-30T21:02:32+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv3.1.2                    2020-06-04T17:53:39+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-beta               2020-05-26T11:18:05+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-beta.1             2020-05-26T11:42:48+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-beta.2             2020-05-26T11:56:51+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-rc                 2020-05-26T14:56:06+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-rc.1               2020-04-29T01:03:31+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0-rc.2               2020-05-15T21:54:51+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.0                    2020-05-28T16:23:23+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.1                    2020-06-15T12:00:45+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.2                    2020-07-01T19:57:14+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.3                    2020-07-25T00:54:45+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.4                    2020-07-31T16:36:28+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.5                    2020-08-31T23:49:40+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.6                    2020-09-16T12:18:02+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.7                    2020-09-29T22:25:42+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.8                    2020-10-30T19:22:54+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.9                    2020-12-21T16:55:42+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv4.0.10                   2021-01-15T13:12:20+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\nv5.0.0-rc                 2021-01-12T23:23:23+08:00            linux\/arm64,darwin\/amd64,linux\/amd64\n&#91;root@gbase_rh7_001 ~]# <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"tiDB%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\"><\/span>tiDB\u5b89\u88c5\u914d\u7f6e\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# vi topology.yaml\n\n# # Global variables are applied to all deployments and used as the default value of\n# # the deployments if a specific deployment value is missing.\nglobal:\n  user: \"tidb\"\n  ssh_port: 22\n  deploy_dir: \"\/tidb-deploy\"\n  data_dir: \"\/tidb-data\"\n\nserver_configs:\n  pd:\n    replication.enable-placement-rules: true\n\npd_servers:\n  - host: 10.0.2.101\n  - host: 10.0.2.115\n\ntidb_servers:\n  - host: 10.0.2.101\n  - host: 10.0.2.115\n\ntikv_servers:\n  - host: 10.0.2.101\n  - host: 10.0.2.115\n\ntiflash_servers:\n  - host: 10.0.2.101\n  - host: 10.0.2.115\n    data_dir: \/tidb-data\/tiflash-9000\n    deploy_dir: \/tidb-deploy\/tiflash-9000\n\nmonitoring_servers:\n  - host: 10.0.2.101\n\ngrafana_servers:\n  - host: 10.0.2.101\n\nalertmanager_servers:\n  - host: 10.0.2.101<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85\"><\/span>Install<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster deploy tidb-test v4.0.10 .\/topology.yaml --user root -p 111111\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster deploy tidb-test v4.0.10 .\/topology.yaml --user root -p 111111\nPlease confirm your topology:\nCluster type:    tidb\nCluster name:    tidb-test\nCluster version: v4.0.10\nType          Host        Ports                            OS\/Arch       Directories\n----          ----        -----                            -------       -----------\npd            10.0.2.101  2379\/2380                        linux\/x86_64  \/tidb-deploy\/pd-2379,\/tidb-data\/pd-2379\npd            10.0.2.115  2379\/2380                        linux\/x86_64  \/tidb-deploy\/pd-2379,\/tidb-data\/pd-2379\ntikv          10.0.2.101  20160\/20180                      linux\/x86_64  \/tidb-deploy\/tikv-20160,\/tidb-data\/tikv-20160\ntikv          10.0.2.115  20160\/20180                      linux\/x86_64  \/tidb-deploy\/tikv-20160,\/tidb-data\/tikv-20160\ntidb          10.0.2.101  4000\/10080                       linux\/x86_64  \/tidb-deploy\/tidb-4000\ntidb          10.0.2.115  4000\/10080                       linux\/x86_64  \/tidb-deploy\/tidb-4000\ntiflash       10.0.2.101  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  \/tidb-deploy\/tiflash-9000,\/tidb-data\/tiflash-9000\ntiflash       10.0.2.115  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  \/tidb-deploy\/tiflash-9000,\/tidb-data\/tiflash-9000\nprometheus    10.0.2.101  9090                             linux\/x86_64  \/tidb-deploy\/prometheus-9090,\/tidb-data\/prometheus-9090\ngrafana       10.0.2.101  3000                             linux\/x86_64  \/tidb-deploy\/grafana-3000\nalertmanager  10.0.2.101  9093\/9094                        linux\/x86_64  \/tidb-deploy\/alertmanager-9093,\/tidb-data\/alertmanager-9093\nAttention:\n    1. If the topology is not what you expected, check your yaml file.\n    2. Please confirm there is no port\/directory conflicts in same host.\nDo you want to continue? &#91;y\/N]:  y\nInput SSH password:\n+ Generate SSH keys ... Done\n+ Download TiDB components\n  - Download pd:v4.0.10 (linux\/amd64) ... Done\n  - Download tikv:v4.0.10 (linux\/amd64) ... Done\n  - Download tidb:v4.0.10 (linux\/amd64) ... Done\n  - Download tiflash:v4.0.10 (linux\/amd64) ... Done\n  - Download prometheus:v4.0.10 (linux\/amd64) ... Done\n  - Download grafana:v4.0.10 (linux\/amd64) ... Done\n  - Download alertmanager:v0.17.0 (linux\/amd64) ... Done\n  - Download node_exporter:v0.17.0 (linux\/amd64) ... Done\n  - Download blackbox_exporter:v0.12.0 (linux\/amd64) ... Done\n+ Initialize target host environments\n  - Prepare 10.0.2.101:22 ... Done\n  - Prepare 10.0.2.115:22 ... Done\n+ Copy files\n  - Copy pd -&gt; 10.0.2.101 ... Done\n  - Copy pd -&gt; 10.0.2.115 ... Done\n  - Copy tikv -&gt; 10.0.2.101 ... Done\n  - Copy tikv -&gt; 10.0.2.115 ... Done\n  - Copy tidb -&gt; 10.0.2.101 ... Done\n  - Copy tidb -&gt; 10.0.2.115 ... Done\n  - Copy tiflash -&gt; 10.0.2.101 ... Done\n  - Copy tiflash -&gt; 10.0.2.115 ... Done\n  - Copy prometheus -&gt; 10.0.2.101 ... Done\n  - Copy grafana -&gt; 10.0.2.101 ... Done\n  - Copy alertmanager -&gt; 10.0.2.101 ... Done\n  - Copy node_exporter -&gt; 10.0.2.101 ... Done\n  - Copy node_exporter -&gt; 10.0.2.115 ... Done\n  - Copy blackbox_exporter -&gt; 10.0.2.101 ... Done\n  - Copy blackbox_exporter -&gt; 10.0.2.115 ... Done\n+ Check status\nEnabling component pd\n        Enabling instance pd 10.0.2.115:2379\n        Enabling instance pd 10.0.2.101:2379\n        Enable pd 10.0.2.115:2379 success\n        Enable pd 10.0.2.101:2379 success\nEnabling component node_exporter\nEnabling component blackbox_exporter\nEnabling component node_exporter\nEnabling component blackbox_exporter\nEnabling component tikv\n        Enabling instance tikv 10.0.2.115:20160\n        Enabling instance tikv 10.0.2.101:20160\n        Enable tikv 10.0.2.101:20160 success\n        Enable tikv 10.0.2.115:20160 success\nEnabling component tidb\n        Enabling instance tidb 10.0.2.115:4000\n        Enabling instance tidb 10.0.2.101:4000\n        Enable tidb 10.0.2.115:4000 success\n        Enable tidb 10.0.2.101:4000 success\nEnabling component tiflash\n        Enabling instance tiflash 10.0.2.115:9000\n        Enabling instance tiflash 10.0.2.101:9000\n        Enable tiflash 10.0.2.101:9000 success\n        Enable tiflash 10.0.2.115:9000 success\nEnabling component prometheus\n        Enabling instance prometheus 10.0.2.101:9090\n        Enable prometheus 10.0.2.101:9090 success\nEnabling component grafana\n        Enabling instance grafana 10.0.2.101:3000\n        Enable grafana 10.0.2.101:3000 success\nEnabling component alertmanager\n        Enabling instance alertmanager 10.0.2.101:9093\n        Enable alertmanager 10.0.2.101:9093 success\nCluster `tidb-test` deployed successfully, you can start it with command: `tiup cluster start tidb-test`\n&#91;root@gbase_rh7_001 ~]#\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B_TiUP_%E7%AE%A1%E7%90%86%E7%9A%84%E9%9B%86%E7%BE%A4%E6%83%85%E5%86%B5\"><\/span>\u67e5\u770b TiUP \u7ba1\u7406\u7684\u96c6\u7fa4\u60c5\u51b5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>TiUP \u652f\u6301\u7ba1\u7406\u591a\u4e2a TiDB \u96c6\u7fa4\uff0c\u8be5\u547d\u4ee4\u4f1a\u8f93\u51fa\u5f53\u524d\u901a\u8fc7 TiUP cluster \u7ba1\u7406\u7684\u6240\u6709\u96c6\u7fa4\u4fe1\u606f\uff0c\u5305\u62ec\u96c6\u7fa4\u540d\u79f0\u3001\u90e8\u7f72\u7528\u6237\u3001\u7248\u672c\u3001\u5bc6\u94a5\u4fe1\u606f\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster list\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster list\nName       User  Version  Path                                            PrivateKey\n----       ----  -------  ----                                            ----------\ntidb-test  tidb  v4.0.10  \/root\/.tiup\/storage\/cluster\/clusters\/tidb-test  \/root\/.tiup\/storage\/cluster\/clusters\/tidb-test\/ssh\/id_rsa\n&#91;root@gbase_rh7_001 ~]#\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5%E9%83%A8%E7%BD%B2%E7%9A%84_TiDB_%E9%9B%86%E7%BE%A4%E6%83%85%E5%86%B5\"><\/span>\u68c0\u67e5\u90e8\u7f72\u7684 TiDB \u96c6\u7fa4\u60c5\u51b5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u8f93\u51fa\u5305\u62ec&nbsp;<code>tidb-test<\/code>&nbsp;\u96c6\u7fa4\u4e2d\u5b9e\u4f8b ID\u3001\u89d2\u8272\u3001\u4e3b\u673a\u3001\u76d1\u542c\u7aef\u53e3\u548c\u72b6\u6001\uff08\u7531\u4e8e\u8fd8\u672a\u542f\u52a8\uff0c\u6240\u4ee5\u72b6\u6001\u4e3a Down\/inactive\uff09\u3001\u76ee\u5f55\u4fe1\u606f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1292\" height=\"325\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2021\/02\/image-4.png\" alt=\"\u68c0\u67e5\u90e8\u7f72\u7684 TiDB \u96c6\u7fa4\u60c5\u51b5\" class=\"wp-image-4318\"\/><figcaption>\u68c0\u67e5\u90e8\u7f72\u7684 TiDB \u96c6\u7fa4\u60c5\u51b5<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster display tidb-test\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster display tidb-test\nCluster type:       tidb\nCluster name:       tidb-test\nCluster version:    v4.0.10\nSSH type:           builtin\nID                Role          Host        Ports                            OS\/Arch       Status    Data Dir                      Deploy Dir\n--                ----          ----        -----                            -------       ------    --------                      ----------\n10.0.2.101:9093   alertmanager  10.0.2.101  9093\/9094                        linux\/x86_64  inactive  \/tidb-data\/alertmanager-9093  \/tidb-deploy\/alertmanager-9093\n10.0.2.101:3000   grafana       10.0.2.101  3000                             linux\/x86_64  inactive  -                             \/tidb-deploy\/grafana-3000\n10.0.2.101:2379   pd            10.0.2.101  2379\/2380                        linux\/x86_64  Down      \/tidb-data\/pd-2379            \/tidb-deploy\/pd-2379\n10.0.2.115:2379   pd            10.0.2.115  2379\/2380                        linux\/x86_64  Down      \/tidb-data\/pd-2379            \/tidb-deploy\/pd-2379\n10.0.2.101:9090   prometheus    10.0.2.101  9090                             linux\/x86_64  inactive  \/tidb-data\/prometheus-9090    \/tidb-deploy\/prometheus-9090\n10.0.2.101:4000   tidb          10.0.2.101  4000\/10080                       linux\/x86_64  Down      -                             \/tidb-deploy\/tidb-4000\n10.0.2.115:4000   tidb          10.0.2.115  4000\/10080                       linux\/x86_64  Down      -                             \/tidb-deploy\/tidb-4000\n10.0.2.101:9000   tiflash       10.0.2.101  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  N\/A       \/tidb-data\/tiflash-9000       \/tidb-deploy\/tiflash-9000\n10.0.2.115:9000   tiflash       10.0.2.115  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  N\/A       \/tidb-data\/tiflash-9000       \/tidb-deploy\/tiflash-9000\n10.0.2.101:20160  tikv          10.0.2.101  20160\/20180                      linux\/x86_64  N\/A       \/tidb-data\/tikv-20160         \/tidb-deploy\/tikv-20160\n10.0.2.115:20160  tikv          10.0.2.115  20160\/20180                      linux\/x86_64  N\/A       \/tidb-data\/tikv-20160         \/tidb-deploy\/tikv-20160\nTotal nodes: 11\n&#91;root@gbase_rh7_001 ~]#\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%90%AF%E5%8A%A8tidb%E9%9B%86%E7%BE%A4\"><\/span>\u542f\u52a8tidb\u96c6\u7fa4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"612\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2021\/02\/image-5.png\" alt=\"\u542f\u52a8tidb\u96c6\u7fa4\" class=\"wp-image-4322\"\/><figcaption>\u542f\u52a8tidb\u96c6\u7fa4<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"335\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2021\/02\/image-6.png\" alt=\"\u542f\u52a8tidb\u96c6\u7fa4\" class=\"wp-image-4323\"\/><figcaption>\u542f\u52a8tidb\u96c6\u7fa4<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster start tidb-test\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster start tidb-test\nStarting cluster tidb-test...\n+ &#91; Serial ] - SSHKeySet: privateKey=\/root\/.tiup\/storage\/cluster\/clusters\/tidb-test\/ssh\/id_rsa, publicKey=\/root\/.tiup\/storage\/cluster\/clusters\/tidb-test\/ssh\/id_rsa.pub\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\n+ &#91; Serial ] - StartCluster\nStarting component pd\n        Starting instance pd 10.0.2.115:2379\n        Starting instance pd 10.0.2.101:2379\n        Start pd 10.0.2.115:2379 success\n        Start pd 10.0.2.101:2379 success\nStarting component node_exporter\n        Starting instance 10.0.2.101\n        Start 10.0.2.101 success\nStarting component blackbox_exporter\n        Starting instance 10.0.2.101\n        Start 10.0.2.101 success\nStarting component node_exporter\n        Starting instance 10.0.2.115\n        Start 10.0.2.115 success\nStarting component blackbox_exporter\n        Starting instance 10.0.2.115\n        Start 10.0.2.115 success\nStarting component tikv\n        Starting instance tikv 10.0.2.115:20160\n        Starting instance tikv 10.0.2.101:20160\n        Start tikv 10.0.2.115:20160 success\n        Start tikv 10.0.2.101:20160 success\nStarting component tidb\n        Starting instance tidb 10.0.2.115:4000\n        Starting instance tidb 10.0.2.101:4000\n        Start tidb 10.0.2.101:4000 success\n        Start tidb 10.0.2.115:4000 success\nStarting component tiflash\n        Starting instance tiflash 10.0.2.101:9000\n        Starting instance tiflash 10.0.2.115:9000\n        Start tiflash 10.0.2.115:9000 success\n        Start tiflash 10.0.2.101:9000 success\nStarting component prometheus\n        Starting instance prometheus 10.0.2.101:9090\n        Start prometheus 10.0.2.101:9090 success\nStarting component grafana\n        Starting instance grafana 10.0.2.101:3000\n        Start grafana 10.0.2.101:3000 success\nStarting component alertmanager\n        Starting instance alertmanager 10.0.2.101:9093\n        Start alertmanager 10.0.2.101:9093 success\n+ &#91; Serial ] - UpdateTopology: cluster=tidb-test\nStarted cluster `tidb-test` successfully\n&#91;root@gbase_rh7_001 ~]#\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%AA%8C%E8%AF%81%E9%9B%86%E7%BE%A4%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81\"><\/span>\u9a8c\u8bc1\u96c6\u7fa4\u8fd0\u884c\u72b6\u6001<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1274\" height=\"332\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2021\/02\/image-7.png\" alt=\"\u9a8c\u8bc1\u96c6\u7fa4\u8fd0\u884c\u72b6\u6001\u4e3aUP\uff0c\u6fc0\u6d3b\" class=\"wp-image-4325\"\/><figcaption>\u9a8c\u8bc1\u96c6\u7fa4\u8fd0\u884c\u72b6\u6001\u4e3aUP\uff0c\u6fc0\u6d3b<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster display tidb-test\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster display tidb-test\nCluster type:       tidb\nCluster name:       tidb-test\nCluster version:    v4.0.10\nSSH type:           builtin\nDashboard URL:      http:\/\/10.0.2.101:2379\/dashboard\nID                Role          Host        Ports                            OS\/Arch       Status  Data Dir                      Deploy Dir\n--                ----          ----        -----                            -------       ------  --------                      ----------\n10.0.2.101:9093   alertmanager  10.0.2.101  9093\/9094                        linux\/x86_64  Up      \/tidb-data\/alertmanager-9093  \/tidb-deploy\/alertmanager-9093\n10.0.2.101:3000   grafana       10.0.2.101  3000                             linux\/x86_64  Up      -                             \/tidb-deploy\/grafana-3000\n10.0.2.101:2379   pd            10.0.2.101  2379\/2380                        linux\/x86_64  Up|UI   \/tidb-data\/pd-2379            \/tidb-deploy\/pd-2379\n10.0.2.115:2379   pd            10.0.2.115  2379\/2380                        linux\/x86_64  Up|L    \/tidb-data\/pd-2379            \/tidb-deploy\/pd-2379\n10.0.2.101:9090   prometheus    10.0.2.101  9090                             linux\/x86_64  Up      \/tidb-data\/prometheus-9090    \/tidb-deploy\/prometheus-9090\n10.0.2.101:4000   tidb          10.0.2.101  4000\/10080                       linux\/x86_64  Up      -                             \/tidb-deploy\/tidb-4000\n10.0.2.115:4000   tidb          10.0.2.115  4000\/10080                       linux\/x86_64  Up      -                             \/tidb-deploy\/tidb-4000\n10.0.2.101:9000   tiflash       10.0.2.101  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  Up      \/tidb-data\/tiflash-9000       \/tidb-deploy\/tiflash-9000\n10.0.2.115:9000   tiflash       10.0.2.115  9000\/8123\/3930\/20170\/20292\/8234  linux\/x86_64  Up      \/tidb-data\/tiflash-9000       \/tidb-deploy\/tiflash-9000\n10.0.2.101:20160  tikv          10.0.2.101  20160\/20180                      linux\/x86_64  Up      \/tidb-data\/tikv-20160         \/tidb-deploy\/tikv-20160\n10.0.2.115:20160  tikv          10.0.2.115  20160\/20180                      linux\/x86_64  Up      \/tidb-data\/tikv-20160         \/tidb-deploy\/tikv-20160\nTotal nodes: 11\n&#91;root@gbase_rh7_001 ~]#\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B3%E9%97%ADtidb%E9%9B%86%E7%BE%A4\"><\/span>\u5173\u95edtidb\u96c6\u7fa4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup cluster stop tidb-test\r\nStarting component `cluster`: \/root\/.tiup\/components\/cluster\/v1.3.2\/tiup-cluster stop tidb-test\r\n+ &#91; Serial ] - SSHKeySet: privateKey=\/root\/.tiup\/storage\/cluster\/clusters\/tidb-test\/ssh\/id_rsa, publicKey=\/root\/.tiup\/storage\/cluster\/clusters\/tidb-test\/ssh\/id_rsa.pub\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.115\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91;Parallel] - UserSSH: user=tidb, host=10.0.2.101\r\n+ &#91; Serial ] - StopCluster\r\nStopping component alertmanager\r\n        Stopping instance 10.0.2.101\r\n        Stop alertmanager 10.0.2.101:9093 success\r\nStopping component grafana\r\n        Stopping instance 10.0.2.101\r\n        Stop grafana 10.0.2.101:3000 success\r\nStopping component prometheus\r\n        Stopping instance 10.0.2.101\r\n        Stop prometheus 10.0.2.101:9090 success\r\nStopping component tiflash\r\n        Stopping instance 10.0.2.115\r\n        Stopping instance 10.0.2.101\r\n        Stop tiflash 10.0.2.115:9000 success\r\n        Stop tiflash 10.0.2.101:9000 success\r\nStopping component tidb\r\n        Stopping instance 10.0.2.115\r\n        Stopping instance 10.0.2.101\r\n        Stop tidb 10.0.2.115:4000 success\r\n        Stop tidb 10.0.2.101:4000 success\r\nStopping component tikv\r\n        Stopping instance 10.0.2.115\r\n        Stopping instance 10.0.2.101\r\n        Stop tikv 10.0.2.115:20160 success\r\n        Stop tikv 10.0.2.101:20160 success\r\nStopping component pd\r\n        Stopping instance 10.0.2.115\r\n        Stopping instance 10.0.2.101\r\n        Stop pd 10.0.2.101:2379 success\r\n        Stop pd 10.0.2.115:2379 success\r\nStopping component node_exporter\r\nStopping component blackbox_exporter\r\nStopping component node_exporter\r\nStopping component blackbox_exporter\r\nStopped cluster `tidb-test` successfully\r\n&#91;root@gbase_rh7_001 ~]# d<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8D%B8%E8%BD%BDtidb%E9%9B%86%E7%BE%A4\"><\/span>\u5378\u8f7dtidb\u96c6\u7fa4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase_rh7_001 ~]# tiup uninstall --all\r\nUninstalled all components successfully!\r\n<\/code><\/pre>\n\n\n\n<p>\u8bb0\u5f97\u6e05\u7406\u6b8b\u4f59\u7684\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> rm -fr \/tidb-d*<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8bb0\u5f55\u5b66\u4e9bTiDB\u7684\u8fc7\u7a0b\uff0c\u5305\u62ec\u7ec4\u4ef6\uff0c\u5b89\u88c5\uff0c\u542f\u52a8\uff0c\u505c\u6b62\uff0c\u5378\u8f7d\u7b49\u57fa\u672c\u6b65\u9aa4\u3002\u540e\u7eed\u4e5f\u5c06\u5305\u62ec\u4f7f\u7528\u3002<\/p>","protected":false},"author":1,"featured_media":4325,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[100,84],"class_list":["post-4297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1","tag-100","tag-tidb"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/4297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=4297"}],"version-history":[{"count":22,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/4297\/revisions"}],"predecessor-version":[{"id":4330,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/4297\/revisions\/4330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media\/4325"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=4297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=4297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=4297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}