linux 基础操作(十一)测试远程主机

ping

[root@localhost ~]# ping 192.168.218.236
PING 192.168.218.236 (192.168.218.236) 56(84) bytes of data.
64 bytes from 192.168.218.236: icmp_seq=1 ttl=64 time=0.452 ms
64 bytes from 192.168.218.236: icmp_seq=2 ttl=64 time=0.360 ms
64 bytes from 192.168.218.236: icmp_seq=3 ttl=64 time=0.446 ms

telnet

[root@localhost ~]# telnet 192.168.218.236 8080
-bash: telnet: command not found
[root@localhost ~]# yum install telnet
Loaded plugins: fastestmirror, refresh-packagekit, security
[root@localhost ~]# telnet 192.168.218.236 8080
Trying 192.168.218.236...
telnet: connect to address 192.168.218.236: Connection refused

nmap

[root@localhost ~]# nmap 192.168.218.236 -p 8080
-bash: nmap: command not found
[root@localhost ~]# yum install nmap
Loaded plugins: fastestmirror, refresh-packagekit, security
[root@localhost ~]# nmap 192.168.218.236 -p 8080

Starting Nmap 5.51 ( http://nmap.org ) at 2019-11-19 10:40 CST
Nmap scan report for 192.168.218.236
Host is up (0.00039s latency).
PORT     STATE  SERVICE
8080/tcp closed http-proxy

nc

[root@localhost ~]# nmap 192.168.218.236 -p 8080
-bash: nmap: command not found
[root@localhost ~]# yum install nmap
Loaded plugins: fastestmirror, refresh-packagekit, security
[root@localhost ~]# nc -v 192.168.218.236 8080
nc: connect to 192.168.218.236 port 8080 (tcp) failed: Connection refused

wget

[root@localhost ~]# wget 192.168.218.204:9527
--2019-11-19 10:19:25--  http://192.168.218.204:9527/
Connecting to 192.168.218.204:9527... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://1.1.1.3/ac_portal/proxy.html?template=20190330210354&tabs=pwd&vlanid=0&url=http://192.168.218.204%3a9527%2f [following]
--2019-11-19 10:19:25--  http://1.1.1.3/ac_portal/proxy.html?template=20190330210354&tabs=pwd&vlanid=0&url=http://192.168.218.204%3a9527%2f
Connecting to 1.1.1.3:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2250 (2.2K) [text/html]
Saving to: ‘index.html.1’

100%[============================================================>] 2,250       --.-K/s   in 0s      

2019-11-19 10:19:25 (74.0 MB/s) - ‘index.html.1’ saved [2250/2250]

[root@localhost ~]# wget 192.168.218.236:8080
--2019-11-19 10:42:41--  http://192.168.218.236:8080/
Connecting to 192.168.218.236:8080... failed: Connection refused.

上一篇 linux 基础操作(十)设置 ip