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'