Gitlab安装

 1.安装postfix

[root@GitLab-TesT ~]# yum install openssh-server postfix cronie

[root@GitLab-TesT ~]# systemctl start postfix

[root@GitLab-TesT ~]# systemctl enable postfix

2.配置gitlab源

[root@GitLab-TesT ~]# cat /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

3.安装gitlab

[root@GitLab-TesT ~]# yum install gitlab-ce

[root@GitLab-TesT ~]# egrep -v '^$|^#' /etc/gitlab/gitlab.rb
external_url 'http://gitlab.home.com'                           #修改为自己的ip或者域名

4.编译

[root@GitLab-TesT ~]# gitlab-ctl reconfigure

#出现以下信息表示编译成功

5.在浏览器输入你的ip或域名

   默认用户名: root   密码:5iveL!fe

   登陆后修改密码

 6.修改邮箱

 

posted @ 2016-10-27 15:03  (KeeP)  阅读(103)  评论(0)    收藏  举报