操作四:在服务器上安装gitlab 及 帐号 群组 项目 分支的创建(之一)

1.安装依赖包
yum install -y curl policycoreutils-python openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld

2.安装gitlab
1)添加gitlab仓库包
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
2)下载安装gitlab社区版
yum install gitlab-ce 自动安装最新版

3.修改配置文件
vim /etc/gitlab/gitlab.rb
external_url ‘http://192.168.25.220:8089’

4.修改完成执行以下命令重新刷新配置
gitlab-ctl reconfigure

5.首次打开会要求修改密码
http://192.168.25.220:8090/
默认帐号:root
密码存放位置:/etc/gitlab/initial_root_password

6.创建新用户,密码会发送到相应的邮箱中

7.创建群组,再将用户添加到该组

8.创建项目,在该项目中添加用户或者添加组

9.创建分支

posted @ 2022-05-17 16:11  爱晚亭的那一片枫叶林  阅读(188)  评论(0)    收藏  举报