7. GitLab - 설치 / 접속

2020. 3. 4. 01:07Git

1. GitLab설치

2. 접속

1. GitLab 설치

$ su - 

# apt-get install curl openssh-server ca-certificates postfix
## postfix는 일단 그냥 no configuration으로 선택

## sudo dpkg-reconfigure postfix 명령으로 언제든지 설정 가능

## 인터넷으로 설정하고 ,시스템메일이름에 컴퓨터이름(yang-virtual-machine)

## 나중에 gitlab에서 메일보낼때 사용된다

 

 

# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

## Running apt-get update... 시간걸림

## 메시지 The repository is setup! You can now install packages. 가 보여야함

 

# apt-get install gitlab-ce

 

# gitlab-ctl reconfigure

## 시간걸림

## 설정파일 수정후에는 항상 이명령을 해줘야 함

 

# gitlab-ctl -help

## gitlab-ctl 명령뒤에 사용할 수 있는 옵션 확인

 

# gitlab-ctl upgrade

## 이상하게 동작하면 restart 하라는 메시지가 보임 

 

(optional)

# gitlab-ctl restart

# gitlab-ctl status

 

참고 : https://erato1004.tistory.com/entry/Ubuntu-1604%EC%97%90-Gitlab-%EC%84%A4%EC%B9%98

 

Gitlab 완전제거 시

# systemctl stop gitlab-runsvdir

#systemctl disable gitlab-runsvdir

# rm /usr/lib/systemd/system/gitlab-runsvdir.service

# systemctl daemon-reload

# gitlab-ctl uninstall

 

# apt remove gitlab-ce

2. 접속

firefox에서 localhost 입력

root 계정으로 비밀번호 설정하여 로그인하면됨

 

3. SSL적용

- 자가 서명 인증서 만들기 ( 인증기관에서 발급받으려면 돈내야함 )

- [참고] 관련개념 https://12bme.tistory.com/80

 

[정보보안] SSL(Secure Socket Layer) 이란

현재 근무 중인 업체에서 SSL 인증서 적용 작업이 필요하다고 합니다. SSL 인증서관련 필요한 것이 무엇인지에 대한 요청이 있었습니다. 간단하게 SSL에 대해 정리해보겠습니다. 1. SSL 개념 잡기 SSL의 개념에 대..

12bme.tistory.com

 

'Git' 카테고리의 다른 글

10. Jenkins 설치  (0) 2020.03.08
8. Gitlab - SSL 적용  (1) 2020.03.05
6. Git 명령어  (0) 2020.03.03
5. Git 고급  (0) 2020.03.02
4. Eclipse + Git 2  (0) 2020.03.02