CentOS 6.X GIT 서버 설치
CentOS 6.X GIT 서버 설치
############ GIT 설치 ####################
1. 설치 버전 확인
git --version
2. 기존 버전 삭제
yum remove git
3. CentOS6 최신 버전 설치
yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
4. git 설치
yum install git
############ Git LAB 설치 ####################
1. package install
yum install curl policycoreutils openssh-server openssh-clients
yum install postfix
service postfix restart
2. curl
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce
3. GitLAB Port 변경
vi /etc/gitlab/gitlab.rb
기본 포트 변경
external_url ‘http://localhost:포트번호' => default 80 => 443
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
external_url 'http://gitlab.example.com'
아래와 같이 변경
external_url 'http://gitlab.one.co.kr:443'
인증과 관련된 unicorn 과 관련된 부분이 두군데가 있습니다. 에디터 화면에서 / 입력한후 8080으로 입력하시면 쉽게 찾으실수 있습니다.
######################################################################
######################################################################
# unicorn['port'] = 8080
아래와 같이 변경
unicorn['listen'] = '127.0.0.1'
unicorn['port'] =88888
######################################################################
Gitlab 안의 유저 인증을 위한 SMTP 설정 변경 부분
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.one.co.kr"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_domain'] = "mail.one.co.kr"
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_ssl'] = false
gitlab_rails['smtp_force_ssl'] = false
gitlab_rails['smtp_user_name'] = "git@one.co.kr"
gitlab_rails['smtp_password'] = "xxxxxx
gitlab_rails['smtp_authentication'] = "login"
변경사항 적용
gitlab-ctl reconfigure
############################################################################
http://gitlab.primarynet.co.kr:443