centos 安装 gitlab

按照官方教程的步骤:https://about.gitlab.com/downloads/#centos6

但是执行这一步

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

会报错找不到镜像文件。

所以我自己下载了rpm 文件在安装。

步骤如下:

sudo yum install openssh-server
sudo yum install postfix # sendmail or exim is also OK
sudo rpm -i gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm # this is the .rpm you downloaded
sudo gitlab-ctl reconfigure   //可能会报错:External URL must include a FQDN(解决办法在下面)
sudo lokkit -s http -s ssh # open up the firewall for HTTP and SSH requests
ok!
sudo gitlab-ctl status;   #查看安装后的程序运行情况!输出如下:
run: nginx: (pid 3012) 53s; run: log: (pid 3011) 53s
run: postgresql: (pid 2857) 87s; run: log: (pid 2856) 87s
run: redis: (pid 2759) 98s; run: log: (pid 2758) 98s
run: sidekiq: (pid 2967) 60s; run: log: (pid 2966) 60s
run: unicorn: (pid 2938) 66s; run: log: (pid 2937) 66s
说明安装成功。
通过浏览器访问:http://localhost   或者  http://ip

OK,可以了用户名和密码默认是root/5iveL!fe

遇到的问题:

1. 报错:External URL must include a FQDN

/etc/gitlab/gitlab.rb默认没有“=”,要自己加上

external_url = ‘gitlab.thefallenphoenix.net‘

附上gitlab网盘地址:http://pan.baidu.com/s/1nt7xeEP

官方安装方法:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md

时间: 2024-08-25 15:27:23

centos 安装 gitlab的相关文章

转载:centos安装gitlab详解

原文地址:http://blog.csdn.net/jiangtao_st/article/details/73612298 一, 服务器快速搭建gitlab方法 可以参考gitlab中文社区 的教程centos7安装gitlab:https://www.gitlab.cc/downloads/#centos7centos6安装gitlab:https://www.gitlab.cc/downloads/#centos6如下方法按照官网来操作,手工安装过于麻烦.当前测试平台为小鸟云的三个月cen

CentOS安装GitLab

最近想写一些小程序,但是GitHub没有免费的private,想到写的程序还得需要部署和MySQL数据库,索性就买一个阿里云的云主机,还挺便宜,一年才600多. 下午安装了JDK.Tomcat.MySQL,现在开始安装GitLab: 安装和配置依赖的环境. sudo yum install curl openssh-server postfix cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s h

CentOS安装gitlab,gerrit,jenkins并配置ci流程

By Wenbin [email protected] 2016/4/9 这是我参考了网上很多的文档,配置了这三个软件在一个机器上,web分别访问8081,8082,8083端口,成功构建了一个ci流程. 版本都是目前最新的版本. 用户 Gitlab:  root/wenbindevops , wenbin/12345678 Gerrit:  gerrit/gerrit, wenbin/wenbin, jenkins/jenkins Jenkins:  jenkins/jenkins 主机192

【GitLab】CentOS安装GitLab最佳实践

环境 [root@iZ2851te7e5Z ~]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.1.1503 (Core) Release: 7.1.1503 Codename: Core 服务器安装了 PHP7 Nginx,占用80端口 Mysql 安装 安装采用官网提供的安装方法. 进入页面 http

centos 安装gitlab

1.开始安装依赖软件:yum -y install policycoreutils openssh-server openssh-clients postfix 2.设置postfix开机自启动,postfix支持gitlab发信功能:systemctl enable postfix && systemctl start postfix 如果出现: Job for postfix.service failed because the control process exited with

CentOS6.5安装GitLab全过程

GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. 官方只提供了Debian/Ubuntu系统下的安装说明文档,如果需要在centos下安装,可以参考这篇:https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos,笔者依照这篇文章的说明,成功的在centos系统上安装了gitlab,分享一下自己的安装过程和碰到的问题

CentOS源码安装GitLab汉化版

示例环境: 软件 版本 CentOS 6.5 x86_64 Git 2.6.2 Ruby 2.2.3 Node.js 4.2.1 Redis 3.0.5 MariaDB 10.0.21 GitLab 8.0.5汉化版 GitLab Shell 2.6.6 Nginx 1.8.0 Go 1.5.1 Gitlab-git-http-server 0.2.14 一.修改Yum源为阿里云提高下载速度 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.

centos 7 安装gitlab

#配置安装EPEL及依赖环境 #更新包     yum update      yum -y install wget yum -y --nogpgcheck install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm#添加epel源      http://www.cnblogs.com/Irving/p/3729074.html    #安装所需依赖包     yum -y

centos 6.5安装GitLab全过程和问题记录

GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. 官方只提供了Debian/Ubuntu系统下的安装说明文档,如果需要在centos下安装,可以参考这篇:https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos,笔者依照这篇文章的说明,成功的在centos系统上安装了gitlab,分享一下自己的安装过程和碰到的问题