安装GitLab

硬件配置建议CPU两个核心,4G内存及以上,已安装Git(yum)

拖入GitLab包

rpm -ivh gitlab-ce-12.3.0-ce.0.el7.x86_64.rpm

基础配置和首次登陆准备

修改配置文件

vim /etc/gitlab/gitlab.rb 
# 修改
external_url 'http://192.168.1.1'  # 生产环境中使用公司域名

重新编译配置文件并启动

gitlab-ctl reconfigure   # 第一次需要很长时间
gitlab-ctl start  # 启动gitlab

登陆到Web管理界面设置的登录密码

http://192.168.1.1

set_password

默认用户为root

first_login

登录成功

gitlab_login

评论




正在载入...
PoweredHexo
HostedAliyun
DNSAliyun
ThemeVolantis
UV
PV
BY-NC-SA 4.0