安装依赖,准备环境
sudo yum install curl policycoreutils openssh–server openssh–clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall–cmd —permanent —add–service=http
sudo systemctl reload firewalld
sudo yum install libsemanage-static libsemanage-devel
下载RPM安装包,并安装
(从国内镜像下载,在这个目录中找到要安装的版本https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/)
curl –LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpm
rpm –i gitlab–ce–XXX.rpm
访问这台服务器的IP地址即可打开
第一次会要求修改root用户的密码,输入新密码即可。