本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.
# curl http://169.254.169.254/latest/user-data curl: (7) Failed connect to 169.254.169.254:80; No route to host
解决方案:
重点检查是否是metadata agent出了问题。
1002 cd /etc/sysconfig/network-scripts/ 1003 ls 1004 vim route-eth0 1005 route add -host 169.254.169.254 gw 10.10.10.1 dev eth0 1006 route -n 1007 curl http://169.254.169.254