如何查看服务器上安装了哪个版本的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这只能通过终端吗? 有没有办法远程(用浏览器而不是终端)做到这一点?
当前回答
你可以在https://your.domain.name/help上查看GitLab的版本
或者通过终端:gitlab-rake gitlab:env:info
其他回答
我有版本:12.2.0-ee,我尝试了URL通过(https://yourgitlab/help),但我没有得到这个信息。 另一方面,我用gitlab-rake成功地进入命令行:
sudo gitlab-rake gitlab:env:info
... GitLab信息 版本:12.2.0-ee ...
获取有关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
阅读这篇文章,它将帮助你。
我已经将我的服务器更新到GitLab 6.6.4,最终找到了在没有SSH访问服务器的情况下远程获取GitLab版本的方法。
您应该登录进入以下页面: https://your.domain.name/help
它显示了类似于:
GitLab 6.6.4 42e34ae GitLab是用于代码协作的开源软件。 ... 等。
如果使用Gitlab Docker镜像:
sudo cat /srv/gitlab/data/gitlab-rails/VERSION
示例输出:
12.1.3
这个命令行可以了解gitlab安装的所有数据
gitlab-rake gitlab:env:info
和这个命令行来了解是否有新的Gitlab版本,因为你可以更新Gitlab
yum --showduplicates list gitlab-ce
一旦知道了当前版本和最新的gitlab更新,就可以使用下面的命令行进行更新
yum install gitlab-ce-15.2.2-ce.0.el7