GitLab 部署:
目录
1、安装环境:
相关依赖安装
yum install curl policycoreutils openssh-server openssh-clients
启动ssh服务并设置开机自启
systemctl enable sshd
systemctl start sshd
安装邮件程序将他启动并设置开机自启
yum –y install postfix
systemctl enable postfix
systemctl start postfix
关闭防火墙,并且设置开机不启动
systemctl stop firewalld
systemctl disable firewalld
2、建立git服务器的yum仓库
安装yum仓库源:curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
然后通过yum安装gitlab-ce
yum –y install gitlab-ce
3、配置GitLab
gitlab-ctl reconfigure
#自动配置文件权限,安装数据库,提示!安装的时间会很长!!!
4、打开web网页通过80端口访问
5、查找临时密码(24h有效)
账号:root
密码:命令行输入:cat /etc/git/initial_root_password 可以获得
6、输入账号密码进入得到下图
7、设置中文(根据需求选择)
8、修改密码
9、Git Lab搭建结束
再次登录输入修改好的密码即可