linux上查看gitlab日志,如何查看Gitlab的版本?
如何查看Gitlab的版本?
如何檢查服務(wù)器上安裝的Gitlab版本?
我是關(guān)于Gitlab更新日志中指定的版本:
[https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md]
例如:“6.5.0”,“6.4.3”等。
這只能通過終端完成嗎?
有沒有辦法遠(yuǎn)程執(zhí)行(使用瀏覽器而不是終端)?
Maxim asked 2019-04-03T22:53:11Z
12個(gè)解決方案
249 votes
我已經(jīng)將我的服務(wù)器更新為GitLab 6.6.4,并最終找到了在沒有SSH訪問服務(wù)器的情況下遠(yuǎn)程獲取GitLab版本的方法。
您應(yīng)該登錄以訪問以下頁面:https://your.domain.name/help
它顯示類似于:
GitLab 6.6.4 42e34ae
GitLab是用于協(xié)作代碼的開源軟件。
...
等等
Maxim answered 2019-04-03T22:54:17Z
57 votes
對(duì)于綜合版本:\
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
您有兩個(gè)選擇(登錄后)。
使用API網(wǎng)址[https://gitlab.example.com/api/v4/version](您可以從命令行使用私有令牌),它返回GitLab Community Edition 10.1.0 5a695c4
在瀏覽器[https://gitlab.example.com/help]中使用HELP網(wǎng)址,您將看到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,那么您可以考慮運(yùn)行此命令。
grep gitlab /opt/gitlab/version-manifest.txt
Arihant Godha answered 2019-04-03T22:57:33Z
8 votes
獲取有關(guān)GitLab及其運(yùn)行的系統(tǒng)的信息:
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
閱讀這篇文章,它會(huì)對(duì)你有所幫助。
Fox answered 2019-04-03T22:58:38Z
8 votes
OP還詢問了如何在瀏覽器中顯示GitLab版本:
登錄GitLab
單擊左側(cè)GitLab菜單中的“幫助”
然后版本出現(xiàn)在頁面頂部
John McGehee answered 2019-04-03T22:59:23Z
5 votes
您也可以通過以管理員身份登錄來檢查瀏覽器中的Gitlab版本名稱,而不是Groups
轉(zhuǎn)到Groups
以管理員身份登錄Gitlab(Groups)
轉(zhuǎn)到管理區(qū)域
在右下角,在Groups標(biāo)簽下方,您可以找到Components標(biāo)簽
在那里你不僅可以找到Gitlab版本,還可以找到不同的組件,如Gitlab Shell,Gitlab workhorse,Gitlab API等,版本號(hào)
您還可以找到更新版本的建議
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檢索它,請(qǐng)參閱Version API:
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/version
有關(guān)身份驗(yàn)證,請(qǐng)參閱個(gè)人訪問令牌文檔。
Jaroslav Kravec answered 2019-04-03T23:01:27Z
0 votes
如果您是管理員,并且想要查看Gitlab版本(以及更多您不知道的內(nèi)容),請(qǐng)單擊“扳手/管理員”菜單圖標(biāo),然后在“組件”下,您可以看到很多,特別是如果您使用的是Omnibus。
pjammer answered 2019-04-03T23:01:59Z
0 votes
另一種選擇是通過[http://your.domain.name/admin]訪問您的管理儀表板(您需要登錄)并查找Components板。 第一個(gè)信息是GitLab版本。
Marcelo Machado answered 2019-04-03T23:02:29Z
總結(jié)
以上是生活随笔為你收集整理的linux上查看gitlab日志,如何查看Gitlab的版本?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux 进程调度类型 总结,Linu
- 下一篇: linux系统root默认密码是多少钱,