linux上查看gitlab日志,如何查看Gitlab的版本?

如何查看Gitlab的版本?

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

我是关于Gitlab更新日志中指定的版本:

[https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md]

例如:“6.5.0”,“6.4.3”等。

这只能通过终端完成吗?

有没有办法远程执行(使用浏览器而不是终端)?

Maxim asked 2019-04-03T22:53:11Z

12个解决方案

249 votes

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

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

它显示类似于:

GitLab 6.6.4 42e34ae

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

...

等等

Maxim answered 2019-04-03T22:54:17Z

57 votes

对于综合版本:\

sudo gitlab-rake gitlab:env:info

例:

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

ntwrkguru answered 2019-04-03T22:54:43Z

19 votes

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

使用API网址[https://gitlab.example.com/api/v4/version](您可以从命令行使用私有令牌),它返回GitLab Community Edition 10.1.0 5a695c4

在浏览器[https://gitlab.example.com/help]中使用HELP网址,您将看到GitLab的版本,即GitLab Community Edition 10.1.0 5a695c4

Míra answered 2019-04-03T22:55:30Z

11 votes

cd / opt / gitlab

cat version-manifest.txt

例:

gitlab-ctl 6.8.2-omnibus

gitlab-rails v6.8.2

目前的gitlab版本是6.8.2

FhvWv.png

Han Yahui answered 2019-04-03T22:56:55Z

10 votes

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

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

Arihant Godha answered 2019-04-03T22:57:33Z

8 votes

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

bundle exec rake gitlab:env:info RAILS_ENV=production

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

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

Fox answered 2019-04-03T22:58:38Z

8 votes

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

登录GitLab

单击左侧GitLab菜单中的“帮助”

然后版本出现在页面顶部

John McGehee answered 2019-04-03T22:59:23Z

5 votes

您也可以通过以管理员身份登录来检查浏览器中的Gitlab版本名称,而不是Groups

转到Groups

以管理员身份登录Gitlab(Groups)

转到管理区域

在右下角,在Groups标签下方,您可以找到Components标签

在那里你不仅可以找到Gitlab版本,还可以找到不同的组件,如Gitlab Shell,Gitlab workhorse,Gitlab API等,版本号

717Ce.jpg您还可以找到更新版本的建议

Rajana Deepak answered 2019-04-03T23:00:28Z

2 votes

cat /opt/gitlab/version-manifest.txt | grep gitlab-ce | awk'{print $ 2}'

Aborn Jiang answered 2019-04-03T23:00:54Z

2 votes

可以使用REST检索它,请参阅Version API:

curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/version

有关身份验证,请参阅个人访问令牌文档。

Jaroslav Kravec answered 2019-04-03T23:01:27Z

0 votes

如果您是管理员,并且想要查看Gitlab版本(以及更多您不知道的内容),请单击“扳手/管理员”菜单图标,然后在“组件”下,您可以看到很多,特别是如果您使用的是Omnibus。

pjammer answered 2019-04-03T23:01:59Z

0 votes

另一种选择是通过[http://your.domain.name/admin]访问您的管理仪表板(您需要登录)并查找Components板。 第一个信息是GitLab版本。

Marcelo Machado answered 2019-04-03T23:02:29Z

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值