mirror of
https://github.com/geektutu/7days-golang.git
synced 2024-04-21 12:32:11 +00:00
19 lines
471 B
Bash
Executable File
19 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
trap "rm server;kill 0" EXIT
|
|
|
|
go build -o server
|
|
./server -port=8001 &
|
|
./server -port=8002 &
|
|
./server -port=8003 -api=1 &
|
|
|
|
sleep 2
|
|
echo ">>> start test"
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
curl "http://localhost:9999/api?key=Tom" &
|
|
|
|
wait |