[1] 필수 종속성 설치
1. 로컬 패키지 인덱스를 새로 고치고 다음 명령을 사용하여 종속성을 설치합니다.
sudo yum install curl policycoreutils-python openssh-server
2. GitLab이 알림 이메일을 보낼 수 있도록 Postfix를 설치
sudo yum install postfix
sudo systemctl start postfix
sudo systemctl enable postfix
[2]. GitLab을 설치
1. GitLab 리포지토리를 시스템 원본 목록에 추가
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
2. GitLab 설치
sudo yum install gitlab-ce
[3]. GitLab URL 설정
1. GitLab 웹 인터페이스에 액세스하기 전에 GitLab에 연결할 URL을 설정
sudo vim /etc/gitlab/gitlab.rb
구성 파일의 상단 근처에 external_url로 시작하는 줄이 표시됩니다. 도메인/하위 도메인 또는 IP 주소와 일치하도록 값을 변경합니다. 도메인이 있는 경우 https를 사용하고 서버 IP 주소를 통해 GitLab 인터페이스에 액세스하려면 http를 사용하십시오.
external_url 'https://gitlab.example.com' -> 도메인 IP 수정
aws ec2 + elb 사용시
external_url 'http://127.0.0.1' 아이피 설정
참고 URL
반응형