1. gitLab 설치 전 필요한 의존파일 설치
$ sudo yum install git
$ sudo yum install curl policycoreutils openssh-server openssh-clients
$ sudo systemctl enable sshd
$ sudo systemctl start sshd
$ sudo yum install postfix
$ sudo systemctl enable postfix
$ sudo systemctl start postfix
$ sudo firewall-cmd --permanent --add-service=http
$ sudo systemctl reload firewalld
하기 명령어를 통해 설치확인이 가능하다.
$ yum list installed | grep 패키지명
2. 깃랩 설치(EE 버전)
$ sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
$ sudo yum install gitlab-ee
3. 깃랩 포트변경
#external_url ‘http://localhost:포트번호' 를 찾아 수정
$ vi /etc/gitlab/gitlab.rb
#13버전이상은 puma
puma['enable'] = true
puma['listen'] = '127.0.0.1'
puma['port'] = 8507
4. 깃랩 실행
$ sudo gitlab-ctl reconfigure
5. 깃랩 초기비밀 번호
cat /etc/gitlab/initial_root_password | grep Pass
'IT 기술 > 코드샘플' 카테고리의 다른 글
Jenkins gitLab 연동하기 (0) | 2021.05.25 |
---|---|
centOS 구글 otp 적용 (0) | 2021.05.24 |
Jenkins 설치 (0) | 2021.05.18 |
Jenkins로 tomcat 배포하기(gitLab) (0) | 2021.05.18 |
mysql/mairadb 저장경로 변경하기 (0) | 2021.05.04 |