기타

[GitLab] 리눅스, 우분투 GitLab 설치, GitLab 서버 구축

woongs_93 2021. 10. 20. 10:25
반응형

1. Git 설치

 

- sudo apt-get install git

- sudo apt install git

 

 

2. GitLab 설치

https://about.gitlab.com/install/

 

Download and install GitLab

Learn about the various GitLab installation packages and downloads for Ubuntu, Debian, Docker, Google Cloud, and many more.

about.gitlab.com

위 링크에서 우분투 버전 체크하고 따라 설치하면 된다.

 

- 필요한 패키지 설치

 

- GitLab package repository

- gitlab-ee (Entrerprise Edition), gitlab-ce (Community Edition) / ee는 install 문제가 있어서 ce로 변경.

 

- GitLab package install

- gitlab-ee -> gitlab-ce 로 변경

- "https://gitlab.example.com" -> on-premise PC ip입력 -> "https://192.168.xxx.xxx:PPPP" (PPPP:포트번호)

- 방식 수정 sudo apt-get install gitlab-ce 로 url 설정안하고 먼저 설치
- 후에 rb 파일 들어가서 변경하는 것으로... (이렇게 해야 설치가 깔끔하게 잘된다... 이상함;;;)

 

 

- 정상적으로 GitLab 설치완료 화면.

- sudo gitlab-ctl reconfigure 커맨드를 한번 입력. (안하면 접속 안될때가 있음)

 

- 해당 ip로 접속하면 다음과 같이 GitLab 로그인 페이지 접속.

- 초기 id : root

- 초기 password : /etc/gitlab/initial_root_password 파일에 존재. (24시간이 지나면 사라짐)

 

반응형