注:操做系統是CentOS 7.4 、 Ubuntu 16
# 下載壓縮包 wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz wget http://download.pingcap.org/tidb-latest-linux-amd64.sha256 # 檢查文件完整性,返回 ok 則正確 sha256sum -c tidb-latest-linux-amd64.sha256 # 解開壓縮包 tar -xzf tidb-latest-linux-amd64.tar.gz cd tidb-latest-linux-amd6
以下步驟依次啓動PD, TiKV, TiDB
注:若是是單界面回話能夠放到後臺運行,我這邊是xshell因此沒有放到後臺多界面操做
./bin/pd-server --data-dir=pd --log-file=pd.log &
命令行輸出mysql
······ 2018/09/09 14:38:28 server.go:190: [info] init cluster id 6373614252582442019 2018/09/09 14:38:28 leader.go:194: [info] PD cluster leader pd is ready to serve
啓動PB成功.linux
./bin/tikv-server --pd="127.0.0.1:2379" --data-dir=tikv --log-file=tikv.log &
命令行輸出sql
······ 2018/09/09 14:41:44.745 mod.rs:186: [INFO] starting working thread: snap-handler 2018/09/09 14:41:44.745 server.rs:153: [INFO] TiKV is ready to serve
啓動TiKV成功.shell
./bin/tidb-server --store=tikv --path="127.0.0.1:2379" --log-file=tidb.log &
命令行輸出markdown
······ 2018/09/09 14:47:09 systime_mon.go:11: [info] start system time monitor 2018/09/09 14:47:09 server.go:241: [info] Listening on :10080 for status and metrics report.
啓動TiDB成功.ide
mysql -h 127.0.0.1 -P 4000 -u root
總體來講, 文檔很清晰, 部署流程也很輕量,也能夠看一下上一篇生產環境中的TIDB部署,能夠參考操作系統