如何查看服务器上安装了哪个版本的GitLab ?
我是关于GitLab更新日志中指定的版本: https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md
例如:“6.5.0”,“6.4.3”等。
Сan这只能通过终端吗? 有没有办法远程(用浏览器而不是终端)做到这一点?
如何查看服务器上安装了哪个版本的GitLab ?
我是关于GitLab更新日志中指定的版本: https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md
例如:“6.5.0”,“6.4.3”等。
Сan这只能通过终端吗? 有没有办法远程(用浏览器而不是终端)做到这一点?
当前回答
除了http://domain-name/help,您还可以在浏览器中以Admin身份登录来检查您的Gitlab版本名
访问http://domain-name 以管理员(Root)身份登录Gitlab 进入管理区域 在右侧的“组”标签下,您可以找到“组件”标签
在那里,你不仅可以找到Gitlab版本,还可以找到不同的组件,如Gitlab Shell、Gitlab workhorse、Gitlab API等,以及版本号 您还可以在那里找到更新版本的建议
其他回答
它可以使用REST检索,参见版本API:
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/version
有关身份验证,请参阅个人访问令牌文档。
cat /opt/gitlab/version-manifest.txt |grep gitlab-ce|awk '{print $2}'
除了http://domain-name/help,您还可以在浏览器中以Admin身份登录来检查您的Gitlab版本名
访问http://domain-name 以管理员(Root)身份登录Gitlab 进入管理区域 在右侧的“组”标签下,您可以找到“组件”标签
在那里,你不仅可以找到Gitlab版本,还可以找到不同的组件,如Gitlab Shell、Gitlab workhorse、Gitlab API等,以及版本号 您还可以在那里找到更新版本的建议
以下信息可以从CI管道中获得(GitLab >= 11.4):
Variable | Value |
---|---|
CI_SERVER_VERSION_MAJOR | The major version of the GitLab instance. |
CI_SERVER_VERSION_MINOR | The minor version of the GitLab instance. |
CI_SERVER_VERSION_PATCH | The patch version of the GitLab instance. |
CI_SERVER_VERSION | The full version of the GitLab instance. |
CD /opt/gitlab
猫version-manifest.txt
例子:
gitlab-ctl 6.8.2-omnibus gitlab-rails v6.8.2
当前gitlab版本为6.8.2