centos下安裝tcping腳本

#編輯腳本git

vim tcping.shgithub

#! /bin/bash

cd /usr/local/src
wget https://raw.githubusercontent.com/Fsiyuetian/tcping/master/tcping.c
yum install -y gcc
gcc -o tcping tcping.c
cp tcping /usr/bin
tcping baidu.com 80

#運行腳本
sh tcping.shvim

#執行後效果以下表示安裝成功
centos下安裝tcping腳本centos

相關文章
相關標籤/搜索