1、首先不要删除yum........不要问怎么知道,如果删除,自己想办法装回来吧。
2、如果涉及yum源问题报错,建议去修改下yum配置,牢记第一条。
以下为安装步骤,以下命令使用root用户执行,如果不是 前加 sudo:
以下安装为免费极狐版
yum install -y curl policycoreutils-python openssh-server perl
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https -- 我的不是https 未执行此代码
systemctl reload firewalld
配置极狐GitLab 软件源镜像
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
安装(127.0.0.1:8080 替换为 自己安装完之后访问的地址,域名也可以),root初始化密码随机生成(密码保存位置: /etc/gitlab/initial_root_password)
EXTERNAL_URL="http://127.0.0.1:8080" yum install -y gitlab-jh
root初始化密码,可以配置,以上命令改为
GITLAB_ROOT_PASSWORD="<strongpassword>" EXTERNAL_URL="http://127.0.0.1:8080" yum install -y gitlab-jh
成功之后,就可以在网页输入:http://127.0.0.1:8080 ,登录root用户访问了。
安装就以上这些了。