Git之Gitlab

一、安装

①安装包下载

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/

这里,我下载的是11.6.3版本

②安装依赖

sudo yum install -y curl policycoreutils-python openssh-server 
sudo systemctl enable sshd sudo systemctl start sshd 
sudo firewall-cmd --permanent --add-service=http 
sudo systemctl reload firewalld 
sudo yum install postfix 
sudo systemctl enable postfix 
sudo systemctl start postfix

③安装

rpm -i gitlab-ce-11.6.3-ce.0.el6.x86_64.rpm

④配置启动

sudo gitlab-ctl reconfigure

⑤访问

默认是80端口

http://192.168.124.129

第一次访问需要设置 root 账号的密码,然后再登录

Git之Gitlab