1.安装
如果要指定版本请打开清华大学镜像网站选择,然后wget获取。
Index of /gitlab-ce/yum/el7/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
1、安装依赖包:
yum install curl policycoreutils openssh-server openssh-clients policycoreutils-python -y
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.2.2-ce.0.el7.x86_64.rpm
2、安装GitLab:
rpm -ivh gitlab-ce-13.2.2-ce.0.el7.x86_64.rpm
3、修改配置文件/etc/gitlab/gitlab.rb
external_url 'http://192.168.150.211'(主机地址)
4、重新加载配置:
gitlab-ctl reconfigure
gitlab-ctl restart
5、查看各服务状态:
gitlab-ctl status
2.使用
如果发现一直卡在502界面请top查看CPU和内存,如果过高,请扩配置。
1、打开网址:http://192.168.150.211
2、设置管理员密码。
3、注册一个用户账号。