gitlab部署
下载地址:
yum源:
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
安装:yum install gitlab-ce-14.1.5-ce.0.el7.x86_64
vim /etc/gitlab/gitlab.rb 修改:
external_url 'http://192.168.70.207'
执行:
gitlab-ctl reconfigure
初始化密码:
账号:root
密码:cat /etc/gitlab/initial_root_password
修改密码:

git clone git@36.133.175.5:root/k8s.git
cd k8s/
22 git add .
23 git commit -m "1111"
24 git config --global user.email "7648@qq.com"
25 git config --global user.name "ysh"
git push git@36.133.175.5:root/k8s.git
修改git仓库地址:
vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
将host: gitlab.example.com改成host: 192.168.0.80

重置管理员登录密码:
su - git
gitlab-rails console -e production
user = User.where(id: 1).first
user.password='12345678'
user.save
exit
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)