#安装git
yum -y install policycoreutils openssh-server openssh-clients postfix
#修改postfix
sed -i 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
sed -i 's/inet_protocols = all/inet_protocols = ipv4/g' /etc/postfix/main.cf
sudo systemctl enable postfix
sudo systemctl start postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce
或者去清华大学镜像源站下载需要的版本
https://mirrors.tuna.tsinghua.edu.cn/
rpm -ivh rpmname......
一些小问题;
gitlab安装的插件比较多,吃内存比较高,建议安装低版本
gitlab配置文件路径
/etc/gitlab/gitlab.rb
external_url 'http://192.168.233.133:90'
# 端口可以变动,
gitlab-ctl reconfigure
# gitlab启动初始化操作
# gitlab-ctl restart
重启