【问题标题】:How to install GitLab on CentOS 6 running WHM?如何在运行 WHM 的 CentOS 6 上安装 GitLab?
【发布时间】:2016-02-25 10:34:57
【问题描述】:

我正在尝试在我的专用服务器上安装GitLab,但没有成功。

服务器信息:

  • CENTOS 6.7 x86_64 标准
  • WHM 11.52.1(构建 2)

我尝试了this 指南,但我不断收到以下错误:

Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ca.planethoster.net
 * epel: mirrors.mit.edu
 * extras: centos.mirror.iweb.ca
 * updates: centos.mirrors.atwab.net
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be installed
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (updates)
           Requires: mysql-libs
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

当我运行以下命令时:

sudo yum install postfix

我收到以下错误:

Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                  |  12 kB     00:00     
 * base: centos.mirror.iweb.ca
 * epel: mirrors.mit.edu
 * extras: centos.mirrors.atwab.net
 * updates: centos.mirror.netelligent.ca
base                                                                                                                           | 3.7 kB     00:00     
epel                                                                                                                           | 4.3 kB     00:00     
epel/primary_db                                                                                                                | 5.8 MB     00:00     
extras                                                                                                                         | 3.4 kB     00:00     
updates                                                                                                                        | 3.4 kB     00:00     
updates/primary_db                                                                                                             | 2.6 MB     00:00     
virtualbox/signature                                                                                                           |  198 B     00:00     
virtualbox/signature                                                                                                           |  951 B     00:00 ... 
No package mysql-libs available.
Error: Nothing to do

当我运行以下命令时:

sudo yum install mysql-libs

【问题讨论】:

标签: gitlab centos6 postfix-mta


【解决方案1】:

我最终做的是跳过 postfix 的安装。我是这样跳过的:

sudo yum install --skip-broken curl openssh-server openssh-clients postfix cronie

然后我编辑了 gitlab.rb 配置文件,使用类似 nano:

nano /etc/gitlab/gitlab.rb

并更改了 external_url' 并向其中添加了一个随机未使用的端口号:

external_url 'http://example.com:8443/'

然后运行

sudo gitlab-ctl reconfigure

使更改生效。

瞧,它起作用了。

【讨论】:

    【解决方案2】:

    这似乎是 CentOS 的一个常见问题。在修复yum install postfix 和缺少mysql-libs 时已经回答了类似的问题here

    注意:由于我无法发表评论,因此我将提供此作为答案并根据任何 cmets 进行更新。

    【讨论】:

      【解决方案3】:

      我建议你使用 Bitnami 一键安装 GitLab。安装 GitLab 非常容易。

      更多信息:https://bitnami.com/stack/gitlab

      维基是:https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_address_for_GitLab.3f

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-05-22
        • 1970-01-01
        • 2018-07-18
        • 1970-01-01
        • 1970-01-01
        • 2019-06-09
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多