Centos6 下搭建配置 GitLab

一、安装程序依赖包



yum install curl openssh-server postfix cronie

service postfix start

chkconfig postfix on

lokkit -s http -s ssh



二、添加 GitLab package server


1 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash


*rpm 包下载地址 https://packages.gitlab.com/gitlab/gitlab-ce

2rpm -ivh gitlab-ce-7.14.3-ce.0.el6.x86_64.rpm


三、 Configure and start GitLab


*修改配置文件将external_url external_url 'http://localhost' 修改成本机的

IP地址,如下所示:*


vim /etc/gitlab/gitlab.rb

external_url 'http://172.17.0.15'


sudo gitlab-ctl reconfigure


四、 Browse to the hostname and login


*初始用户名密码如下:*


*Username: root *


*Password: 5iveL!fe*


blob.png


*登录成功之后*


blob.png


到此服务就基本安装成功了,可以测试一下注册的时候是否可以正常接收到邮

件,*如果不能正常接收邮件,请检查postfix服务是否启动,在gitlab.rb 文件中

的 **external_url 是否已经修改。*

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...