Gitlab CE(Community Edition) 설치

1. 필수 종속성 패키지 설치
apt update
apt install -y curl openssh-server ca-certificates tzdata perl

2. GitLab 공식 저장소 등록
curl -fsSL https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash

3. GitLab CE 설치 및 외부 접속 URL 설정
export EXTERNAL_URL="http://10.10.10.43"
apt install -y gitlab-ce

4. 초기 root 비밀번호 확인 및 접속
cat /etc/gitlab/initial_root_password

5. 웹브라우저 접속 확인
http://10.10.10.43
로그인 계정: root / <root 비밀번호>

6. 패스워드 변경
우측 상단 Avatar 아이콘 > Edit Profile > Access > Password and authentication > Change Password

7. gitlab-ctl 운영 커맨드
서비스 상태 확인: gitlab-ctl status
설정 재적용 및 재시작: gitlab-ctl reconfigure
서비스 재시작: gitlab-ctl restart

8. systemctl로 운영 커맨드
systemctl enable gitlab-runsvdir.service
systemctl stop gitlab-runsvdir.service
systemctl restart gitlab-runsvdir.service
systemctl status gitlab-runsvdir.service
위로 스크롤