1、curl
(1)curl -v ip:port
[root@localhost ~]# curl -v 192.168.120.15:37777 * About to connect() to 192.168.120.15 port 37777 (#0) * Trying 192.168.120.15... * Connected to 192.168.120.15 (192.168.120.15) port 37777 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 192.168.120.15:37777 > Accept: */* >
(2)curl -kv https://ip:port
[root@localhost ~]# curl -kv https://192.168.12.15:3789 * About to connect() to 192.168.12.15 port 3789 (#0) * Trying 192.168.12.15... * Connected to 192.168.12.15 (192.168.12.15) port 3789 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * skipping SSL peer certificate verification * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=cn.com.ca.d6.agent * start date: 4月 26 03:51:05 2021 GMT * expire date: 4月 26 03:51:05 2041 GMT * common name: cn.com.ca.d6.agent * issuer: CN=cn.com.ca.d6.agent > GET / HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 192.168.12.15:3789 > Accept: */* > not found