본문 바로가기

linux/centOS

CentOS6 - GitLab 설치

얼마전까지 GitLab 설치가 참으로 까다로운듯 했으나 


요즘은 엄청 간단하더라.


GitLab download :  https://about.gitlab.com/downloads/


가이드 대로 하면 설치 뚝.딱.


Download the Omnibus package and install everything

curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.6.1_omnibus.5.3.0.ci.1-1.el6.x86_64.rpm
sudo yum install openssh-server
sudo yum install postfix
sudo yum install cronie
sudo service postfix start
sudo chkconfig postfix on
sudo rpm -i gitlab-7.6.1_omnibus.5.3.0.ci-1.el6.x86_64.rpm


Configure and start GitLab

sudo gitlab-ctl reconfigure
sudo lokkit -s http -s ssh


설치후 /opt/gitlab을 확인해보면 nginx, redis, unicorn, postgresql 등등 여러가지가 같이 설치가 되어있다.


자료를 찾아보니 불과 얼마전까지만 해도 따로따로 설치를 하는것 같았지만 지금은 이렇게 편할수가 없다.


GitLab의 회원가입시 사용될 이메일 발송을 위해 smtp포트 오픈해주자.


그 다음, /etc/gitlab/gitlab.rb 파일에서 설정을 해주었다.

external_url 'http://192.168.0.100:9000'    // 9000번포트로 사용하기 위한 설정

gitlab_rails['gitlab_signup_enabled'] = true    // 메인페이지에서 회원가입 버튼 노출 허용

gitlab_rails['gitlab_email_from'] = 'root@mkk.com'   // 이메일 설정

gitlab_rails['gitlab_host'] = '192.168.0.100'   // 호스트 설정


기본적인 부분만 설정하고 일단 사용해 보기로 하자.





- 설치 후 화면 -






'linux > centOS' 카테고리의 다른 글

taskkill process  (0) 2014.09.17
find를 잘 활용하자.  (0) 2014.08.28
[centOS6] apache 설치  (0) 2013.05.22
postfix 설치 - centOS 6  (0) 2013.04.28
centOS 6 rabbitMQ 설치  (0) 2013.04.27