如何查看Gitlab的版本?

Max*_*xim 219 gitlab

如何检查服务器上安装的Gitlab版本?

我是关于Gitlab更新日志中指定的版本:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md

例如:"6.5.0","6.4.3"等.

这只能通过终端完成吗?
有没有办法远程执行(使用浏览器而不是终端)?

Max*_*xim 298

我已经将我的服务器更新为GitLab 6.6.4,并最终找到了在没有SSH访问服务器的情况下远程获取GitLab版本的方法.

应该登录以访问以下页面: https://your.domain.name/help

它显示类似于:

GitLab 6.6.4 42e34ae

GitLab是用于协作代码的开源软件.
...

  • 你必须登录.(我一直在摸不着头脑10分钟......) (12认同)
  • 查找文件名"version-manifest.txt"...对于gitlab omnibus,它存储在"/opt/gitlab/version-manifest.txt"中 (6认同)
  • 您知道从文件系统执行此操作的方法吗?即,不再启动的服务器。 (2认同)

ntw*_*uru 66

对于综合版本:\

sudo gitlab-rake gitlab:env:info
Run Code Online (Sandbox Code Playgroud)

例:

System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   2.1.7p400
Gem Version:    2.2.5
Bundler Version:1.10.6
Rake Version:   10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:    8.2.2
Revision:   08fae2f
Directory:  /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL:        https://your.hostname
HTTP Clone URL: https://your.hostname/some-group/some-project.git
SSH Clone URL:  git@your.hostname:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:    2.6.8
Repositories:   /var/opt/gitlab/git-data/repositories
Hooks:      /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:        /opt/gitlab/embedded/bin/git
Run Code Online (Sandbox Code Playgroud)

  • 它确实如此,但它很轻松.对于这样一个简单的任务 - 检查版本,WebURL /帮助页面是更好的解决方案. (6认同)
  • 这个命令是做什么的,它需要很长时间才能恢复版本信息? (4认同)
  • @stamster OP问"这只能通过终端来完成吗?" (3认同)

Joh*_*hee 34

OP还询问了如何在浏览器中显示GitLab版本:

  1. 登录GitLab
  2. 单击左侧GitLab菜单中的" 帮助 "
  3. 然后版本出现在页面顶部


Mír*_*íra 22

您有两个选择(登录后).

  1. 使用API​​网址https://gitlab.example.com/api/v4/version(您可以从命令行使用私有令牌),它返回{"version":"10.1.0","revision":"5a695c4"}
  2. 在浏览器https://gitlab.example.com/help中使用HELP网址,您将看到GitLab的版本,即GitLab Community Edition 10.1.0 5a695c4


Ari*_*dha 21

如果您使用的是自托管版本的GitLab,那么您可以考虑运行此命令.

grep gitlab /opt/gitlab/version-manifest.txt


小智 11

cd/opt/gitlab

cat version-manifest.txt

例:

gitlab-ctl 6.8.2-omnibus
gitlab-rails v6.8.2

目前的gitlab版本是6.8.2

控制台的屏幕截图


小智 11

您可以在以下位置查看 GitLab 的版本:https ://your.domain.name/help

或通过终端: gitlab-rake gitlab:env:info


Fox*_*Fox 8

获取有关GitLab及其运行的系统的信息:

bundle exec rake gitlab:env:info RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)

gitlab的示例输出:env:info

System information
System:     Arch Linux
Current User:   git
Using RVM:  yes
RVM Version:    1.20.3
Ruby Version:   2.0.0p0
Gem Version:    2.0.0
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:    5.2.0.pre
Revision:   4353bab
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.arch
HTTP Clone URL: http://gitlab.arch/some-project.git
SSH Clone URL:  git@gitlab.arch:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.4.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git
Run Code Online (Sandbox Code Playgroud)

阅读这篇文章,它会对你有所帮助.

  • 它工作正常,但是当前目录应该在安装gitlab的目录之前更改:cd/home/git/gitlab(否则它将报告:无法定位Gemfile). (5认同)

Raj*_*pak 7

相反的http://domain-name/help,你可以在浏览器中登录以管理员检查您的Gitlab版本名称

  • http://domain-name
  • 以Admin(Root)身份登录Gitlab
  • 转到管理区域
  • 在右下角,在Groups标签下方,您可以找到Components标签

在那里你不仅可以找到Gitlab版本,还可以找到不同的组件,如Gitlab Shell,Gitlab workhorse,Gitlab API等,版本号 在此输入图像描述 您还可以找到更新版本的建议


Abo*_*ang 6

cat /opt/gitlab/version-manifest.txt |grep gitlab-ce|awk '{print $2}'
Run Code Online (Sandbox Code Playgroud)


DLi*_*ght 5

如果使用 Gitlab Docker 镜像:

sudo cat /srv/gitlab/data/gitlab-rails/VERSION
Run Code Online (Sandbox Code Playgroud)

示例输出:

12.1.3
Run Code Online (Sandbox Code Playgroud)