redhat gitlab的搭建

http://www.cnblogs.com/derekchen/p/5870723.html

1.新建 /etc/yum.repos.d/gitlab-ce.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

2.安装步骤:

https://about.gitlab.com/installation/#centos-6

# 安装依赖包
yum install curl openssh-server openssh-clients postfix cronie
# 启动 postfix 邮件服务
service postfix start
# 检查 postfix
 chkconfig postfix on
# 安装 GitLab 社区版
yum install gitlab-ce
# 初始化 GitLab
gitlab-ctl reconfigure

3、登录访问

添加访问的 host,修改/etc/gitlab/gitlab.rbexternal_url

external_url 'http://git.test.com'

每次修改/etc/gitlab/gitlab.rb,都要运行以下命令,让配置生效

gitlab-ctl reconfigure

在浏览器打开网址http://git.test.com,登陆。默认管理员:

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

 http://blog.csdn.net/ouyang_peng/article/details/72903221

我自己操作到如下:

 1.  考虑是否默认80端口被占用,如果被占用修改为其他端口,我的打开是httpd的页面【第二天打开就好了,估计重启的缘故,可以试试安装好以后重启】

 正确页面为:

在您的第一次访问时,您将被重定向到密码重置屏幕,以提供初始管理员帐户的密码。输入您想要的密码,您将被重定向回登录屏幕。 
默认帐户的用户名是root。提供您先前创建的密码并登录。登录后,您可以更改用户名。

密码至少8位:我设置的Cl199XXXX20#

 

posted @ 2017-09-23 22:04  dieyaxianju  阅读(1688)  评论(0编辑  收藏  举报