本博客已經添加"打賞"功能,"打賞"位置位於右邊欄紅色框中,感謝您贊助的咖啡.
# 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