gpt4 book ai didi

gitlab - 如何在运行 WHM 的 CentOS 6 上安装 GitLab?

转载 作者:行者123 更新时间:2023-12-02 01:09:52 24 4
gpt4 key购买 nike

我正在尝试安装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

最佳答案

我最终所做的是跳过postfix的安装。我像这样跳过了它:

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

然后我使用 nano 之类的东西编辑了 gitlab.rb 配置文件:

nano /etc/gitlab/gitlab.rb

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

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

然后运行

sudo gitlab-ctl reconfigure

使更改生效。

瞧,它有效。

关于gitlab - 如何在运行 WHM 的 CentOS 6 上安装 GitLab?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33869037/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com