本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.

# curl http://169.254.169.254/latest/user-data
curl: () Failed connect to 169.254.169.254:; No route to host

解决方案:

重点检查是否是metadata agent出了问题。

  cd /etc/sysconfig/network-scripts/
ls
vim route-eth0
route add -host 169.254.169.254 gw 10.10.10.1 dev eth0
route -n
curl http://169.254.169.254
05-11 15:14