questions icon indicating copy to clipboard operation
questions copied to clipboard

Micro API 版本问题

Open gstormlee opened this issue 5 years ago • 3 comments

我直接运行 micro -version 返回 micro version latest

我运行 micro api 再运行 curl http://localhost:8080 返回:{"version": "1.18.0"} {"version": "latest"}

上述两行都是返回。 请问这是什么版本。

gstormlee avatar Apr 21 '20 03:04 gstormlee

micro 正确的安装方式应该是到源码目录下使用make命令编译,这样才会传BUILD_DATE与GitTag也就是版本号进去。这样就可以拿到版本号了。直接使用源码编译得到的只是latest

printfcoder avatar Apr 22 '20 10:04 printfcoder

我是安装的也会这样吗?还是我安装错误。

gstormlee avatar Apr 22 '20 11:04 gstormlee

是的,没有错误。使用make安装即可

printfcoder avatar Apr 22 '20 11:04 printfcoder