下面介紹一下這個套件的用途,這個套件
一可以監聽服務器的端口狀態,默認是80端口的,也可以指定其它端口。
二可以看到ping 返回的時間,這樣可以知道服務器是否有延遲或者端口不通的狀態。
安裝方法:
To install tcptraceroute on Debian/Ubuntu:
QUOTE:
$ sudo apt-get install tcptracerouteTo install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:
QUOTE:
$ sudo yum install tcptracerouteFinally, download tcpping from the web.
QUOTE:
$ cd /usr/bin然后,就可以測試網路連接的速度了:
$ sudo wget http://www.vdberg.org/~richard/tcpping
$ sudo chmod 755 tcpping
QUOTE:
$ tcpping www.cnn.com這樣就可以囉~
seq 0: tcp response from 157.166.240.13 [open] 82.544 ms
seq 1: tcp response from 157.166.241.10 [open] 80.771 ms
seq 2: tcp response from 157.166.241.11 [open] 80.838 ms
seq 3: tcp response from 157.166.241.10 [open] 80.145 ms
seq 4: tcp response from 157.166.240.11 [open] 86.253 ms