V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Veneris
V2EX  ›  分享发现

在华为云的服务器装了个 Glances,显示是 AWS 的服务器

  •  
  •   Veneris · 2021-08-30 09:43:26 +08:00 · 1774 次点击
    这是一个创建于 963 天前的主题,其中的信息可能已经有所发展或是发生改变。

    image.png

    是跑在 docker 容器里的,然后又在海外小厂的服务器试了试,这一行是空的。

    配置型号和后面的 cn-north-4b 是地域,北京四区,也是对的。

    那么是因为哪里的问题会显示 AWS EC2 ?

    6 条回复    2021-09-01 17:37:20 +08:00
    unnamedhao
        1
    unnamedhao  
       2021-08-30 09:50:47 +08:00
    有兴趣可以去看一下 glances 的源码
    oott123
        2
    oott123  
       2021-08-30 10:11:18 +08:00 via Android
    华为支持了某种 aws like metadata server 吧
    buchikoma
        3
    buchikoma  
       2021-08-30 10:13:00 +08:00
    你再开个 s3 还会有新发现
    hljjhb
        4
    hljjhb  
       2021-09-01 16:35:12 +08:00
    curl http://169.254.169.254/latest/meta-data/instance-type
    Veneris
        5
    Veneris  
    OP
       2021-09-01 17:26:30 +08:00
    @hljjhb 我也看到这里了哈哈
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2870 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 592ms · UTC 14:12 · PVG 22:12 · LAX 07:12 · JFK 10:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.