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