一、目标环境 Ubuntu 24.04,拟安装社区版gitlab。无废话流程。 二、安装步骤 1. 前置步骤 启用ssh 防火墙放行 安装curl 添加仓库包 2. 安装gitlab-ce 3. 部署安装完成后 1)重置root密码 [root@test bin]# gitlab-rails consoleirb(main):001:0> user = User.where(id:1).firstirb(main):002:0> user.password = ‘修改的密码(必须超过八位)’irb(main):004:0> user.saveirb(main):005:0> exit 2)编辑配置文件,设置为你的urlvim /etc/gitlab/gitlab.rb external_url ‘http://172.16.237.141’ 三、可能会碰到的问题 报错:there was a problem with public attribute 问题日志 问题分析 这个错误表明系统中仍然残留着 GitLab EE(企业版)的配置信息,导致在配置 GitLab CE(社区版)时出现冲突。可以按照以下步骤彻底清理残留配置并重新安装 彻底彻底卸载残留的 GitLab 组件: 清理系统缓存并重新安装 […]
git
1 post