GITlab部署

镜像repo

[gitlab-ce]

name=gitlab-ce

baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6

repo_gpgcheck=0

gpgcheck=0

enabled=1

gpgkey=https://packages.gitlab.com/gpg.key

 

依赖安装

yum install curl openssh-server openssh-clients postfix cronie

yum install gitlab-ce

gitlab-ctl reconfigure

 

配置文件

/etc/gitlab/gitlab.rb 

可vim,编辑host,用户,端口

编辑结束,使用    gitlab-ctl reconfigure(使操作生效)

使用本机ip或域名登录,默认登录密码账户为

用户名: root

密码: 5iveL!fe

 

gitlab汉化

查看版本

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

克隆GItlab.com仓库

git clone https://gitlab.com/larryli/gitlab.git

 

补充说明:

 

yum     install    curl     policycoreutils openssh-serveropenssh-clients   -y

systemctl      enable    sshd

systemctl    start   sshd

yum   install   postfix

systemctl    enable   postfix

systemctl    start    postfix

firewall-cmd     --permanent       --add-service=http

systemctl    reload     firewalld

 

wget   https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.2-ce.0.el7.x86_64.rpm        ----这是gitlab最新rpm包

rpm    -i     gitlab-ee-XXX.rpm

gitlab-ctl     reconfigure          ---配置生效

gitlab-ctl     restart

vim     /etc/gitlab/gitlab.rb

external_url     'http://本机ip'

转载于:https://www.cnblogs.com/alex-note/p/7458848.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值