chaosblade1.0.3实战安装
一、GUI安装
全部参考:https://github.com/chaosblade-io/chaosblade-box/releases/tag/v1.0.3
1.1、启动mysql
su
进入chaosbladeBox文件夹
cd /tmp/chaosbladeBox
nohup java -Duser.timezone=Asia/Shanghai -jar chaosblade-box-1.0.3.jar --server.port=8080 --spring.datasource.url="jdbc:mysql://127.0.0.1:3307/chaosblade?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai" --spring.datasource.username=root --spring.datasource.password=123456 --chaos.server.domain=192.168.43.100:8080 --chaos.function.sync.type=ALL > chaosblade-box.log 2>&1 &
1.2 访问平台
检查启动日志,未出现异常的情况下,可以浏览器访问,打开 Chaosblade-Box
http://192.168.43.100:8080/
1.3 保存container数据,生成新的images
参考:https://www.cnblogs.com/hd92/p/17078919.html
docker exec -it a0975403e10b /bin/bash
docker commit -m "new container" a0975403e10b mysql:5.7
docker stop a0975403e10b
docker rm -f a0975403e10b
docker rmi mysql:5.6
docker tag 860c279d2fec mysql:5.6
docker rmi mysql:5.7
二、探针安装
![](https://img2023.cnblogs.com/blog/1656313/202302/1656313-20230227094037322-1427588330.png)
下载chaosagent包到opt目录下,并解压(离线安装)
wget https://chaosblade.oss-cn-hangzhou.aliyuncs.com/platform/release/1.0.3/chaosagent.tar.gz -O chaos.tar.gz && tar -zxvf chaos.tar.gz -C /opt/
执行安装探针脚本
cd /opt/chaos sh /opt/chaos/chaosctl.sh install -k c63fec7de8774216a98cb62288b2d103 -p application1 -g applicationGroup1 -P 19527 -t 192.168.43.100:8080