环境:CentOS 7
安装 GitLab
参考官方文档:https://gitlab.cn/docs/jh/
安装依赖包、下载rpm包:
## 阿里源配置:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
yum install -y curl policycoreutils-python openssh-server perl
wget https://packages.gitlab.cn/repository/el/7/gitlab-jh-17.7.7-jh.0.el7.x86_64.rpm
安装极狐GitLab
rpm -ivh gitlab-jh-17.7.8-jh.0.el7.x86_64.rpm
获取初始密码
极狐GitLab将随机生成一个密码并存储在/etc/gitlab/initial_root_password文件中(出于安全原因,24 小时后会自动删除),获取其内容并保存。使用此密码的用户名为root。
修改访问地址
修改/etc/gitlab/gitlab.rb文件中的external_url参数为期望的访问地址。一般分为极狐GitLab所在主机的IP地址
# 例如 external_url 'http://192.168.1.10'
external_url 'http://<YOUR_IP_ADDRESS>'
修改完成后,执行如下命令重启使配置生效
gitlab-ctl reconfigure
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




