Programmer Application Note

2015년 4월 12일 일요일

gitlab 서버 구축

오후 5:52 Posted by PAN.SPOT , No comments
ubuntu 14.04 버전 (64bit)

1. Install and configure the necessary dependencies
$sudo apt-get install openssh-server
$sudo apt-get install postfix
2. Download the Omnibus package and install everything
$wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.9.2-omnibus-1_amd64.deb
$sudo dpkg -i gitlab_7.9.2-omnibus-1_amd64.deb
3. Configure and start GitLab
$sudo gitlab-ctl reconfigure
4. Browse to the hostname and login
Username: root
Password: 5iveL!fe

nginx web포트 변경
1. 8000 포트로 변경
$sudo vi /etc/gitlab/gitlab.rb
external_url 'http://localhost:8000'

※ 설치 후 기존 80포트는 apaches 서버로 사용 되고 있었기 때문에 포트를 변경할 필요가 있었다. 이때 생각 없이 8080포트로 변경 후 사용 하였을때, 아래와 같은 에러가 발생한다.
502 GitLab is not responding.
이유는 omnibus gitlab readme에서 확인 할 수 있다.
By default, Unicorn listens at TCP address 127.0.0.1:8080. Nginx listens on port 80 (HTTP) and/or 443 (HTTPS) on all interfaces.
그래서 포트를 8000으로 변경 해서 사용함.

0 개의 댓글:

댓글 쓰기