参考的学习文档:https://jingyan.baidu.com/article/37bce2be5f9f931002f3a2f9.html
我们在host中配置了多个域名,要测试域名有没有生效可以使用ping 命令。
win+R -->cmd -->回车打开命令窗口。
直接 ping + host 中配置的域名(例:ping admin)
成功失败参看下图
我们也可以ping 数据库地址 ping rm-12345695bcux42807g9o.mysql.rds.aliyuncs.com(
jdbc:mysql://rm-12345695bcux42807g9o.mysql.rds.aliyuncs.com:3306
)
查看端口号:具体操作自行百度
telnet 172.16.1.46 8090
//域名+端口号
telnet apipcs3.dccnet.com.cn 443
链接成功如图
路由追踪命令
linux: traceroute
Linux命令:traceroute命令(路由跟踪)_Running Sun丶的博客-CSDN博客_linux traceroute
windows: tracert
curl 命令 ,给服务器发送请求(# curl http://tps-obs.obsv3.js-nj-1.nj.yb)
请求成功后会返回数据示例: