一、安装程序依赖包
@H_404_3@
@H_404_3@
yum install curl openssh-server postfix cronie
service postfix start
chkconfig postfix on
lokkit -s http -s ssh
@H_404_3@
@H_404_3@
二、添加 GitLab package server
@H_404_3@
1 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
@H_404_3@
*rpm 包下载地址 https://packages.gitlab.com/gitlab/gitlab-ce
2rpm -ivh gitlab-ce-7.14.3-ce.0.el6.x86_64.rpm
@H_404_3@
三、 Configure and start GitLab
@H_404_3@
*修改配置文件将external_url external_url 'http://localhost' 修改成本机的
IP地址,如下所示:*
@H_404_3@
vim /etc/gitlab/gitlab.rb
external_url 'http://172.17.0.15'
@H_404_3@
sudo gitlab-ctl reconfigure
@H_404_3@
四、 Browse to the hostname and login@H_404_3@
@H_404_3@
*初始用户名密码如下:*
@H_404_3@
*Username: root *
@H_404_3@
*Password: 5iveL!fe*
@H_404_3@
blob.png
@H_404_3@
*登录成功之后*
@H_404_3@
blob.png
@H_404_3@
到此服务就基本安装成功了,可以测试一下注册的时候是否可以正常接收到邮
件,*如果不能正常接收邮件,请检查postfix服务是否启动,在gitlab.rb 文件中
的 **external_url 是否已经修改。*