目录
官网:https://about.gitlab.com/install/
- gitlab-ctl start # 启动所有 gitlab 组件
- gitlab-ctl stop # 停止所有 gitlab 组件
- gitlab-ctl restart # 重启所有 gitlab 组件
- gitlab-ctl status # 查看服务状态
- gitlab-ctl reconfigure # 重载服务
- gitlab-ctl tail # 查看日志
虚拟机最小需求:4G内存
- yum install -y curl policycoreutils-python openssh-server perl
- yum install -y gitlab-ce-15.9.3-ce.0.el7.x86_64.rpm
- cd /etc/gitlab/
- vim gitlab.rb
- external_url 'http://192.168.67.21' #gitlab访问地址




自动化部署:
gitlab-ctl reconfigure


登录
用户:root
初始密码: cat /etc/gitlab/initial_root_password


语言设置:



重新登录生效

修改密码,初始密码24小时后过期:

新建项目:



添加密钥:


克隆项目:

git clone 192.168.67.21:gitlab-instance-ae16f24d/demo.git

