You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
600 B
37 lines
600 B
## extend tool for ping
|
|
pong www.baidu.com
|
|
|
|
pong www.baidu.com 443
|
|
|
|
pong -t 1www.baidu.com 443
|
|
|
|
pong -k udp www.baidu.com 443
|
|
|
|
pong -a www.baidu.com -p 443 -k tcp -t 3
|
|
|
|
|
|
## build arm64 on oracle
|
|
```bash
|
|
cd /root
|
|
rm -rf pong
|
|
git clone https://git.sre.ink/go/pong.git
|
|
cd pong
|
|
make build-linux-arm64
|
|
rm -rf /usr/bin/pong
|
|
mv pong /usr/bin/
|
|
pong www.baidu.com 443
|
|
```
|
|
|
|
## build amd64 on vm
|
|
```bash
|
|
cd /root
|
|
rm -rf pong
|
|
git clone https://git.sre.ink/go/pong.git
|
|
cd pong
|
|
make build-linux-amd64
|
|
rm -rf /usr/bin/pong
|
|
mv pong /usr/bin/
|
|
pong www.baidu.com 443
|
|
```
|
|
# issue
|
|
pong www.baidu1.com 不会捕获ctrlc |