takin(全链路压测)快速安装 -mac 图文版

Takin
2021 年 6 月 25 日,数列开源了一整套全链路压测解决方案,目前在 github 上 807 个 star(https://github.com/shulieTech/Takin),可谓如火如荼。 下面和大家介绍一下 takin 在 mac 上快速部署的具体方法:
基础服务安装
安装部署 homebrew(已部署可跳过)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
mysql 安装
安装 mysql 服务端
brew install mysql@5.7

设置 mysql 密码,shulie@2020
mysql_secure_installation

安装 mysql 客户端
brew install mysql-client

mysql 启动
brew services start mysql@5.7

下载 sql 脚本(tro-web、tro-cloud、amdb)
curl -o trodb_web_base.sql https://raw.githubusercontent.com/shulieTech/Takin/main/takin-webapp/doc/trodb_web_base.sql
curl -o trodb_cloud_base.sql https://raw.githubusercontent.com/shulieTech/Takin/main/takin-webapp/doc/trodb_cloud_base.sql
curl -o trodb_cloud_base.sql https://raw.githubusercontent.com/shulieTech/Takin/main/takin-webapp/doc/trodb_cloud_base.sql
curl -o amdb.sql https://raw.githubusercontent.com/shulieTech/Takin/main/takin-data/doc/amdb.sql
执行 sql 脚本,执行脚本较多,需要等待 5 秒左右
mysql -uroot < *.sql
redis 安装
brew install redis

修改配置文件,增加密码 shulie@2020
vi /usr/local/etc/redis.conf

重启 redis 服务
brew services start redis
influxdb
需要安装 influxdb 1.8.5
brew install influxdb@1

修改配置文件,开启鉴权
vi /usr/local/etc/influxdb.conf

启动 influxdb 服务
brew services start influxdb@1

设置 influxdb 密码 shulie@2020
influx create user 'root' with password 'shulie@2020' with all privileges

clickhouse
curl -O 'https://builds.clickhouse.tech/master/macos/clickhouse' ./clickhouse server
执行 ctrl+C 终止
修改配置文件,添加密码 shulie@2020
vi ./preprocessed_configs/config.xml

后台启动
./clickhouse server --daemon
下载 clickhouse.sql
curl -o clickhouse.sql "https://raw.githubusercontent.com/shulieTech/Takin/main/takin-data/doc/clickhouse.sql"
./clickhouse/clickhouse client < clickhouse.sql
zookeeper
brew install zookeeper

启动 zookeeper
brew services start zookeeper
应用启动安装
tro-web 启动
nohup java -jar tro-web-app-1.0.0-SNAPSHOT.jar &
tro-cloud 启动
下载压测引擎
mkdir engine&&mkdir -p script/tmp && cd engine && curl -o pressure-engine.tar.gz https://shulie-main-pass.oss-cn-hangzhou.aliyuncs.com/open-source/pressure-engine.tar.gz
启动
nohup java -jar tro-cloud-app-1.0.0-SNAPSHOT.jar &
amdb 启动
nohup java -jar amdb-app-1.0.4.1-SNAPSHOT.jar &
surge-deploy 启动
nohup java -jar amdb-app-1.0.4.1-SNAPSHOT.jar &
版权声明: 本文为 InfoQ 作者【国隆(关注公众号国隆带你学架构)】的原创文章。
原文链接:【http://xie.infoq.cn/article/47d299c6286aca35dcf116846】。文章转载请联系作者。
评论