centos 6.7 install gitlab

创建gitlab的服务器内存至少 4G,建议4-8G。小于4G,gitlab内嵌的nginx无法启动。会出现内存溢出的情况。

打开centos 系统防火墙有关 http 和 ssh 的访问

sudo yum install -y curl openssh-server openssh-clients cronie
sudo lokkit -s http -s ssh

安装postfix ,发送提醒邮件(例如:创建用户的时候,发送邮件设置密码)

sudo yum install postfix
sudo service postfix start
sudo chkconfig postfix on

在postfix安装过程中,会有配置界面,选择 ‘Internet Site‘ 然后回车。使用服务器的外部DNS“邮件名称”并按Enter键。其他的默认即可。

新建 /etc/yum.repos.d/gitlab-ce.repo,内容为,

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

再执行

sudo yum makecache
sudo yum install gitlab-ce

gitlab默认配置文件

/etc/gitlab/gitlab.rb

修改  external_url ‘gitlab_domain‘,这个参数是发送邮件的时候,链接地址。

修改配置文件之后,需要重新执行

gitlab-ctl reconfigure

查看gitlab状态

gitlab-ctl status

gitlab 启动,停止,重启

gitlab-ctl start,gitlab-ctl stop,gitlab-ctl restart

gitlab 默认的日志文件存放在 /var/log/gitlab目录下

查看所有日志

gitlab-ctl tail

查看nginx日志

gitlab-ctl tail nginx/gitlab_acces.log

查看 postgresql 日志

gitlab-ctl tail  postgresql

卸载gitlab

gitlab-ctl stop
rpm -e gitlab-ce
ps aux | grep gitlab
kill -9 pid  杀掉进程
find / -name gitlab | xargs rm -rf
时间: 2024-12-23 05:58:07

centos 6.7 install gitlab的相关文章

CentOS 6.5 安装Gitlab 7.12.2

官网环境要求 参见:https://github.com/gitlabhq/gitlabhq GitLab is a Ruby on Rails application that runs on the following software: Ubuntu/Debian/CentOS/RHEL Ruby (MRI) 2.1 Git 1.7.10+ Redis 2.0+ MySQL or PostgreSQL For more information please see the architec

centos 5.10 install lnmp

一.Install MySQL on CentOS/Red Hat (RHEL) 6.5/5.10 二.Install Nginx/PHP-FPM on CentOS/RHEL centos 5.10 install lnmp

Centos 6.3 install Darwin Streaming Server 6.0.3

网上说的天花乱坠,都是抄来抄去,没有一个是经过自己试验,然后才写的 周氏一族,整理技术文档,给下一代留点教程...... 1.服务器系统准备 2.安装文件准备 2.1  源码文件,请上官网,下载,或者用我下面的地址也可以. http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar 2.2  下载附件  dss_patch [里面有两个文件 dss-6.0.3.patch 和 dss-hh-20080728-1.

Centos 6.3 install reiserFS support

# rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org # rpm -Uvh  http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm # yum update # yum install kmod-reiserfs reiserfs-utils # modprobe reiserfs Centos 6.3 install reiserFS support

jenkins install gitlab hook failed--cannot delete file

My OS: win10 Install method: jenkins.msi Problem: install gitlab hook failed. Problem description: cannot delete the target files/directory, and you can't more the directory. Reason: The path you indtalled jenkins cannot contain space, such as Progra

CentOS 7 Install Gitlab CE

https://hostpresto.com/community/tutorials/how-to-install-and-setup-gitlab-on-centos-7/ http://linux.it.net.cn/CentOS/course/2016/0813/24330.html http://linux.it.net.cn/CentOS/course/2015/0321/14033.html https://www.nichijou.com/p/6sh26/ https://segm

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.

【GitLab】CentOS 6.5 安装GitLab 搭建自己的Github

前言: 使用Github,免费的公开仓库可以用来开源一些代码,可是写一个项目的时候,并不想开源,在Github创建私有仓库还需要交保护费,所以我就想到了要不要自己搭一个Git服务器. 一开始,我直接yum安装了git,通过简单的配置可以通过[email protected]:/git/*.git,这样SSH的方式push和pull代码.可是,我还想通过http的方式,于是又通过安装apache实现了通过http的方式进行操作.现在又遇到了问题,就是怎么在线浏览我的代码,然后又是一通搜索,找到了g

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

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