2017년 4월 22일 토요일

GitLab 설치하기

Centos7에서 아래와 같이 진행하여 GitLab을 설치할 수 있다.

1. Install and configure the necessary dependencies

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

2. Add the GitLab package server and install the package

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

3. Configure and start GitLab

sudo gitlab-ctl reconfigure

4. Browse to the hostname and login

설치된 서버 주소를 80포트를 통해 web brower로 접속하면 root의 password를 설정할 수 있고,
설정한 이후, gitlab에 접속할 수 있다.

참고 : https://about.gitlab.com/downloads/#centos7

댓글 없음 :

댓글 쓰기