[devops] Gitlab 설치 (CentOS 7)

heeju.song·2022년 8월 28일
0

📍Gitlab ?

Gitlab이란 Git의 원격저장소 기능을 비롯하여 이슈트래커, CI/CD기능 등을 제공하는 설치형 버전관리 시스템이다. S/W의 개발부터 배포와 모니터링 등의 라이프사이클에 대한 관리를 제공하며, 개인 또는 조직만이 접근할 수 있도록 설정할 수 있다.


Gitlab의 설치가이드는 공식 사이트에 잘 설명되어 있다.
https://about.gitlab.com/install/#centos-7

1. 필요 패키지 설치

yum install -y curl policycoreutils-python openssh-server perl
systemctl enable sshd
systemctl start sshd

2. postfix

yum install postfix
systemctl enable postfix
systemctl start postfix

3. curl

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

4. 경로 설정 & 설치

sudo EXTERNAL_URL="http://211.43.13.82/:8088" yum install -y gitlab-ce

5. Web

6. root 계정

gitlab-rails console -e production
user = User.where(id:1).first
user.password='P@ssw0rd' #변경할password
user.password_confirmation='P@ssw0rd' #변경할password
user.save
exit

변경한 패스워드로 로그인하면 끝!

profile
Stay Young 🧚🏻‍♀️

0개의 댓글