# go_seckill **Repository Path**: git-w/go_seckill ## Basic Information - **Project Name**: go_seckill - **Description**: GO实战电商网站高并发秒杀系统 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-06-16 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 9.前端静态化代码 1. 分别启动frontend,backend,注意设置启动目录 ## 相关链接 * 生成html页面的访问链接 http://localhost:8082/product/generate/html?productID=2 * 访问生成后的html页面 http://localhost:8082/html/htmlProduct.html # 交叉编译 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build validate.go && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build getOne.go # 部署 ``` 1. validate scp validate root@192.168.8.170:~ 2. getOne scp getOne root@192.168.8.180:~ ``` # 访问链接 * rabbitmq http://192.168.8.1:15672/#/ # 压测命令 ``` wrk -t80 -c200 -d30s --latency -H "Cookie: uid=4;sign=1uE0SdLJRQ1ErpPKNc7Jzw==" http://192.168.8.170:8083/check?productID=2 wrk -t80 -c2000 -d30s --latency -H "Cookie: uid=4;sign=1uE0SdLJRQ1ErpPKNc7Jzw==" http://192.168.8.170:8083/check?productID=2 wrk -t80 -c20000 -d30s --latency -H "Cookie: uid=4;sign=1uE0SdLJRQ1ErpPKNc7Jzw==" http://192.168.8.170:8083/check?productID=2 ```