GitLab安装

Gitlab下载地址:
国外:https://packages.gitlab.com/gitlab/gitlab-ce
国内清华镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
注意:虚拟机需要2G内存2个CPU
一、关闭centos的防火墙,并设置不在开机启动
systemctl stop firewalld.service
systemctl disable firewalld.service
在这里插入图片描述二、安装依赖软件openssh(ssh协议的服务端和客户端)
yum install -y curl policycoreutils-python openssh-server cronie
安装lokkit
yum -y install lokkit
启动ssh
lokkit -s http -s ssh
设置ssh开机自启动
systemctl enable sshd

三、安装依赖软件postfix(邮件传输代理软件)
yum -y install postfix
设置postfix自启动
systemctl enable postfix
启动postfix
systemctl start postfix

四、将Gitlib rpm包上传到centos root目录,安装rpm包
rpm -ivh /root/gitlab-ce-13.5.3-ce.0.el7.x86_64.rpm
出现下列图标表示安装成功

上述步骤完成后重启centOS
五、配置gitlab(此步骤执行时间较长20-30分钟左右,需耐心等待)
gitlab-ctl reconfigure

六、启动gitlab
gitlab-ctl start

七、设置gitlib开机自启动
systemctl enable gitlab-runsvdir.service

八、安装完成后,使用服务器IP即可打开gitlab网页。并设置gitlab root用户密码。
九:使用root账号及密码登录

你可能感兴趣的:(git,http)