基础服务安装
安装部署 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 &
若本文档对您有用,请为我们点个赞👍
本文来自投稿,不代表TakinTalks稳定性技术交流平台立场,如若转载,请联系原作者。