Linux环境 GitLab 安装

1.安装和配置必要的依赖项
在CentOS 7上,以下命令还将在系统防火墙中打开HTTP,HTTPS和SSH访问。
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
( 提示"FirewallD is not running",
systemctl status firewalld;
systemctl start firewalld;
)

安装Postfix以发送通知电子邮件
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

2.添加GitLab软件包存储库并安装软件包

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee

常用命令

查看版本
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
刷新配置
gitlab-ctl reconfigure
启动、关闭和重启(/opt/gitlab/bin)
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart
提示“ok:run”成功。如下图:
Linux环境 GitLab 安装

问题:
运行 gitlab-ctl reconfigure 命令时出现下面的 letsencrypt 证书错误:
Linux环境 GitLab 安装
答:
在 /etc/gitlab/gitlab.rb 中添加 letsencrypt['enable'] = false 可解决。

gitlab http访问404错误
答:
检查Firewalls是否增加http服务是否安装,尝试关闭防火墙,/etc/gitlab/gitlab.rb 配置中注释external_url

Linux环境 GitLab 安装

文章链接: https://www.mfisp.com/11670.html

文章标题:Linux环境 GitLab 安装

文章版权:梦飞科技所发布的内容,部分为原创文章,转载请注明来源,网络转载文章如有侵权请联系我们!

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
建站教程投稿分享

shell函数的简单应用

2022-10-25 17:58:49

建站教程投稿分享

服务器如何修改密码

2022-10-26 15:12:03

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
客户经理
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

梦飞科技 - 最新云主机促销服务器租用优惠