티스토리 뷰
gitlab 설치 (참고링크)
https://about.gitlab.com/install/
https://docs.gitlab.com/omnibus/settings/ssl.html#lets-encrypthttpsletsencryptorg-integration
gitlab 운영 (참고링크)
https://wikidocs.net/16279
gitlab 설치 (centos7 기준)
GIT yum repo 설치 (최신버전)
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
git 설치
yum install git
git --version
git version 2.22.0
git 에서 필요한 패키지 설치
sudo yum install -y curl policycoreutils-python openssh-server
#sudo systemctl enable sshd (이미 설치가 되어 있음)
#sudo systemctl start sshd (이미 실행되어 있음)
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
postfix 설치 (외부 SMTP 메일과 연동할 경우는 아래 경우 skip 해도 됨)
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
smtp 설정 링크 (https://docs.gitlab.com/omnibus/settings/smtp.html)
gitlab 설치
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
EXTERNAL_URL="https://도메인" yum install -y gitlab-ce
설정파일 수정
vim /etc/gitlab/gitlab.rb
https 설정
external_url 'https://도메인'
letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['이메일주소']
letsencrypt['auto_renew'] = true
- external_url 에 도메인 값만 넣어주면 나머지는 알아서 자동적으로 설정됨
설정 파일 재적용
gitlab-ctl reconfigure
gitlab-ctl configure error
There was an error running gitlab-ctl reconfigure:
letsencrypt_certificate[git.newrunsys.net] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for git.newrunsys.net] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [git.newrunsys.net] Validation failed, unable to request certificate
- 방화벽에서 80번 443번 포트 오픈 여부 확인과 해외쪽 (Lets Encrypt 서버) 간 통신이 일어나기 때문에 해외 접근 차단을 확인
gitlab 백업
https://docs.gitlab.com/ee/raketasks/backup_restore.html
gitlab-rake gitlab:backup:create STRATEGY=copy
gitlab 업데이트
yum install -y gitlab-ce
업데이트 버전 여부 확인
http(s)://git도메인/help
'Linux' 카테고리의 다른 글
nginx - php-fpm 연동 (0) | 2019.05.16 |
---|---|
telnet 통신 테스트 (0) | 2019.04.02 |
proc 정보 (0) | 2019.03.22 |
monit 설치 (1) | 2019.03.20 |
ctime, atime, mtime 리눅스 (0) | 2019.03.18 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- L2TP
- php
- WAF
- IPSEC
- Apache
- virtualbox
- ssh
- softether
- galera
- OpenVPN
- ntp
- yum
- pptp
- gitlab
- 리눅스
- iptables
- mariadb
- cURL
- GeoIP
- NGINX
- kvm
- centOS7
- HAProxy
- centos8
- 베이어다이나믹
- mod_security
- MySQL
- 인증서
- SSL
- glusterfs
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함