1、安装docker.
(01_centos 安装docker)
https://docs.docker.com/install/linux/docker-ce/centos/
2、下载并安装 tidb-docker-compose
https://github.com/pingcap/tidb-docker-compose
可能存在问题:(版本的问题)
1、tidb-docker-compose. clone 碰到错误
git clone https://github.com/pingcap/tidb-docker-compose.git
正克隆到 'tidb-docker-compose'...
fatal: unable to access 'https://github.com/pingcap/tidb-docker-compose.git/': Peer reports incompatible or unsupported protocol version.
https://blog.csdn.net/aaaaaab_/article/details/82025741
3、https://docs.docker.com/compose/install/
dockersudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
3、创建并启动集群
1、cd tidb-docker-compose && docker-compose pull
-bash: cd: tidb-docker-compose: 没有那个文件或目录
2、sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
3、cd tidb-docker-compose && docker-compose pull
-bash: /usr/local/bin/docker-compose: 权限不够
4、chmod -R 777 /usr/local/bin/docker-compose
5、cd /usr/local/tidb-docker-compose/ & docker-compose pull
6、docker-compose up -d
4、访问集群
mysql -h 127.0.0.1 -P 4000 -u root
访问集群 Grafana 监控页面:http:// IP :3000 默认用户名和密码均为 admin。
集群数据可视化:http:// IP :8010
春光静好 发布了61 篇原创文章 · 获赞 59 · 访问量 4万+ 私信 关注