Open DuBaiJunCS opened 1 year ago
0. 安装 GO环境 https://blog.csdn.net/Mr_Dong_cson/article/details/130411887
0.5. 安装minw64 将 mingw64\bin 写入系统变量
gcc -v 测试配置是否成功
1.克隆CHAOS项目 Git clone https://github.com/tiagorlampert/CHAOS
2. 终端进入项目目录
终端执行命令下载项目依赖 go mod download
终端执行命令设置环境 set PORT=8080 set SQLITE_DATABASE = chaos
3. 在项目下新建Database目录 其下新建名为chaos的sqlite数据库文件
4. 在chaos路径 go run cmd/chaos/main.go
出现这些就运行成功,
若在generate操作返回 exec: "sh": executable file not found in %PATH%: 请将sh.exe 配置到系统环境变量 (推荐使用Git\bin中的sh.exe)
0. 安装 GO环境 https://blog.csdn.net/Mr_Dong_cson/article/details/130411887
0.5. 安装minw64 将 mingw64\bin 写入系统变量
gcc -v 测试配置是否成功
1.克隆CHAOS项目 Git clone https://github.com/tiagorlampert/CHAOS
2. 终端进入项目目录
终端执行命令下载项目依赖 go mod download
终端执行命令设置环境 set PORT=8080 set SQLITE_DATABASE = chaos
3. 在项目下新建Database目录 其下新建名为chaos的sqlite数据库文件
4. 在chaos路径 go run cmd/chaos/main.go
出现这些就运行成功,
若在generate操作返回 exec: "sh": executable file not found in %PATH%: 请将sh.exe 配置到系统环境变量 (推荐使用Git\bin中的sh.exe)