tiDB 单机版安装

1.下载压缩包
wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz
wget http://download.pingcap.org/tidb-latest-linux-amd64.sha256
2.检查文件完整性
[root@localhost tools]# sha256sum -c tidb-latest-linux-amd64.sha256tidb-latest-linux-amd64.tar.gz
OK #返回ok说明文件没问题
3.解压tar -xzf tidb-latest-linux-amd64.tar.gz
cd tidb-latest-linux-amd64
4.启动PD
[root@localhost tidb-latest-linux-amd64]# ./bin/pd-server --data-dir=/data/pd --log-file=/data/logs/pd.log &
查看启动的进程[root@localhost tidb-latest-linux-amd64]# ps -ef|grep pd-server
在这里插入图片描述
5.启动TiKV
[root@localhost tidb-latest-linux-amd64]# ./bin/tikv-server --pd=“127.0.0.1:2379” --data-dir=/data/tikv --log-file=/data/logs/tikv.log &
[root@localhost tidb-latest-linux-amd64]# ps -ef|grep tikv-server
在这里插入图片描述
6.启动TiDB
[root@localhost tidb-latest-linux-amd64]# ./bin/tidb-server --store=tikv --path=“127.0.0.1:2379” --log-file=/data/logs/tidb.log &
[root@localhost tidb-latest-linux-amd64]# ps -ef|grep tidb-server
在这里插入图片描述
7.使用mysql连接TiDB [root@localhost logs]# mysql -h 127.0.0.1 -P 4000 -u root -D test
在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值