Linux 测试IP和端口

Linux 测试IP和端口

wget [ip]:[port]

➜  ~ wget 127.0.0.1:6379
--2019-07-03 13:57:43--  http://127.0.0.1:6379/
正在连接 127.0.0.1:6379... 已连接。
已发出 HTTP 请求,正在等待回应... 200 没有 HTTP 头,假定为 HTTP/0.9
长度:未指定
正在保存至: “index.html”

index.html                                                              [                         <=>                                                                                                                                        ]     407  --.-KB/s

ping -c [port] [ip]

➜  ~ ping -c 6379 localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.039 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.126 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.088 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.093 ms
按Ctrl+C //退出命令
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.039/0.086/0.126/0.031 ms

Ctrl+C 退出正在执行的命令

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值