日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發布時間:2024/10/8 linux 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

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等,版本號

您還可以找到更新版本的建議

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

總結

以上是生活随笔為你收集整理的linux上查看gitlab日志,如何查看Gitlab的版本?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。