[ Server ][ Linux ] centos7 gitlab CE(Community Edition)설치 > linux

본문 바로가기
사이트 내 전체검색

linux

[ Server ][ Linux ] centos7 gitlab CE(Community Edition)설치

페이지 정보

작성자 웹지기 댓글 0건 조회 8,961회 작성일 19-04-02 15:25

본문

1. 필요한 종속성을 설치하고 구성합니다.

@CentOS 7에서 아래 명령은 시스템 방화벽에서 HTTP 및 SSH 액세스를 엽니 다.


# yum install curl policycoreutils openssh-server openssh-clients 

# systemctl enable sshd 

# systemctl start sshd 

# firewall-cmd --permanent --add-service=http 

# systemctl reload firewalld


@그런 다음 Postfix를 설치하여 알림 전자 메일을 보냅니다. 

@다른 솔루션을 사용하여 전자 메일을 보내려면이 단계를 건너 뛰고 GitLab을 설치 한 후 외부 SMTP 서버를 구성하십시오 .

# yum install postfix 

# systemctl enable postfix 

# systemctl start postfix 


@Postfix 설치 중에 구성 화면이 나타날 수 있습니다. '인터넷 사이트'를 선택하고 엔터 키를 누릅니다. 

@'메일 이름'에 서버의 외부 DNS를 사용하고 Enter 키를 누릅니다. 추가 화면이 나타나면 계속 enter를 눌러 기본값을 적용하십시오.


2. GitLab 패키지 저장소를 추가하고 패키지를 설치하십시오.

@GitLab 패키지 저장소를 추가하십시오.

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


@그런 다음 GitLab 패키지를 설치하십시오.

@https://gitlab.example.comGitLab 인스턴스에 액세스하려는 URL로 변경하십시오 . 

@설치가 자동으로 해당 URL에서 GitLab을 구성하고 시작합니다.

@https://URL을 GitLab 자동으로 됩니다.

@하자의 암호화와 인증 요청 인바운드 HTTP 액세스 및 유효한 호스트 이름이 필요합니다. 

@나만의 인증서를 사용하거나 http : //를 사용할 수도 있습니다 .

# yum install gitlab-ce -y

@ 이 명령어로 실행하지말자 : sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce


@gitlab 설정파일 변경

# vim /etc/gitlab/gitlab.rb

 

@http https 모두 사용가능 - 이부분을 원하는 부분으로 링크로 수정해준다.

# EXTERNAL_URL="https://gitlab.example.com"

다음과 같이 변경

# EXTERNAL_URL="https://gitlab.도메인:포트번호" 

 

@포트에 대한 방화벽 설정

# firewall-cmd --permanent --add-port=변경한포트/tcp 

# firewall-cmd --reload

 

@Gitlab 설치 마지막 단계 실행 

# gitlab-ctl reconfigure


3. 호스트 이름 및 로그인을 찾습니다.

@처음 방문하면 비밀번호 재설정 화면으로 리디렉션됩니다. 

@초기 관리자 계정의 암호를 입력하면 다시 로그인 화면으로 리디렉션됩니다. 

@기본 계정의 사용자 이름 root을 사용하여 로그인하십시오.

@설치 및 구성에 대한 자세한 지침은 설명서를 참조하십시오 .

 

4. gitlab 명령어

# gitlab-ctl start  //시작

# gitlab-ctl stop  //정지

 

5. Gitlab 오류시 확인 부분

# chown -R [GitLab관리계정명:GitLab관리계정그룹명] /var/log/gitlab/unicorn 

# chown -R [GitLab관리계정명:GitLab관리계정그룹명] /var/log/gitlab/gitlab-git-http-server 

# chown -R [GitLab관리계정명:GitLab관리계정그룹명] /var/log/gitlab/gitlab-rails 

# chown -R [GitLab관리계정명:GitLab관리계정그룹명] /var/log/gitlab/gitlab-shell 

# chown -R [GitLab관리계정명:GitLab관리계정그룹명] /var/log/gitlab/sidekiq 

이 외에도 /var/opt/gitlab 부분도 확인해보기.


Gitlab 내부적포트 

 - Nginx = 80포트

 - Unicorn = 8080 포트

 - Gitlab = 지정 포트 

 

추천0 비추천0

댓글목록

등록된 댓글이 없습니다.

Total 103건 4 페이지
  • 열람중 [ Server ][ Linux ] centos7 gitlab CE(Community Edition)설치
  • 1. 필요한 종속성을 설치하고 구성합니다. @CentOS 7에서 아래 명령은 시스템 방화벽에서 HTTP 및 SSH 액세스를 엽니 다. # yum install curl policycoreutils openssh-server openssh-clients # systemctl enable sshd # systemctl start sshd # firewall-cmd --permanent --add-service=http # systemctl reload fi...
  • 웹지기 04-02 8962 0 0 댓글 0
  • 57 [ Server ][ Linux ][ ubuntu ] sass install, 우분투에 sass 설치하기
  • 일단 우분투서버에 ruby가 설치되어 있어다는 조건하에. :sass -v 있다면 버젼이 나오고 없다면 설치하라는 명령이 뜰것이다. 설치가 되어있지 않다면 :apt-get install ruby-sass 중간에 y/n 질문을 하면 y를 눌러주면 된다. 설치가 완료 되었으면. 버젼을 확인하자 :sass -v :Sass 3.4.21 (Selective Steve) 버젼이 나오면 성공한것이다. [이 게시물은 웹지기님에 의해 2019-03-15 15:33:17 knowledge에서 ...
  • 웹지기 12-05 8894 0 0 댓글 0
  • 56 [ Server ][ Linux ] centOS7 node설치( node.js , npm )
  • epel 저장소 확인 # yum repolist epel 저장소가 존재하지 않으면 먼저 epel-release 설치 # yum install epel-release -y node.js 및 npm 설치 여부 확인 # node --version bash: node: command not found # npm --version bash: npm: command not found 설치되어 있지 않을 시 설치 명령...
  • 웹지기 05-02 8846 0 0 댓글 0
  • 55 [ Server ][ Linux ][ htaccess ] 아이피 차단 관련 설정
  • * 국내아이피를 제외한 나머지 국가에 대해 아이피 차단시 첨부화일을 참고!* 특정 아이피를 차단할경우.htaccess 파일을 편집(만약 123.45.123.45 를 막는다고 할때) :namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />SetEnvIfNoCase remote_addr 123.45.123.45 go_outOrder allow,denyAllow from allDeny from env...
  • 웹지기 10-01 8736 0 0 댓글 0
  • 54 [ Server ][ Linux ] httpd.conf 서버 디렉토리 보이게, 안보이게 설정
  • httpd.conf 파일에서 아파치 서버 디렉토리의 폴더및 파일을 보여주거나, 파일 및 폴더를 보여주지않고 오류를 출력할 때 설정 방법. <Directory "D:/AutoSet9/public_html"> #index파일이 없을 때 디렉토리를 감추고 에러를 출력 Options FollowSymLinks #index파일이 없을 때 디렉토리를 보여줌 Options Indexes FollowSymLinks </Di...
  • 웹지기 11-26 8714 0 0 댓글 0
  • 53 [ Server ][ Linux ] 계정 용량 확인 / 관리
  • [code]<?php$du=`du -sk`;$save=100; //할당받은 계정용량, 단위 MBytes$du=$du/1000;$result1=$save-$du;$result2=$du;echo "<font size='2' color='#0078FF'>전체 용량 :<font size='2' color='#ff6666'> 100MB</font><br>";ec...
  • 웹지기 09-30 8520 0 0 댓글 0
  • 52 [ server ][ linux ][ gitlab ] 원격 저장소 url 변경
  • # git remote -v # origin http://gitlab.com/sample/sample.git (fetch) # origin http://gitlab.com/sample/sample.git (push) 확인을 해본 다음 다음의 명령어로 변경이 가능하다 # git remote set-url origin ssh://git@gitlab.com/sample/sample.git 다시 확인을 해보면 # git remo...
  • 웹지기 06-01 8485 0 0 댓글 0
  • 51 [ Server ][ Linux ] Gitlab 서버 도메인 변경
  • gitlab 서버의 도메인을 변경하고 싶다면 일단 검색을 한다. # find / -name gitlab.yml # /var/opt/gitlab/gitlab-rails/etc/gitlab.yml # /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml 이런 리스트에서 다음 파일에서 변경을 해준다. # vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml ...
  • 웹지기 12-12 8469 0 0 댓글 0
  • 50 [ Server ][ Linux ] 리눅스 호스팅 서버 관리
  • ■리눅스 호스팅서버 관리************************************************************ 리눅스 호스팅서버 관리************************************************************ 호스팅서비스에 필요한 것들- 리눅스 운영체제- 아파치 웹서버- MySQL 데이터베이스- PHP, Perl 등과 같은 웹프로그래밍언어- 메일서비스 지원을 위한 Sendmail, Qmail, POP, IMAP- Webalizer와 access...
  • 웹지기 09-30 8409 0 0 댓글 0
  • 49 [ Server ][ Linux ] CentOS7 IP 확인 설정 변경하기
  • CentOS7 Minimal 로 설치시 별 다른 패키지가 설치 되어있지 않아 설치하기 전에는 다음의 명령을 사용한다. # ip address [root@cms_db ~]# ip address 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 in...
  • 웹지기 08-12 8222 0 0 댓글 0
  • 48 [ Server ][ Linux ] centOS7 EPEL-RELEASE 설치
  • 설치 확인 # yum repolist Loaded plugins: fastestmirror No such command: repolist. Please use /usr/bin/yum --help 미설치시 다음의 명령어를 통해 설치 # yum -y install epel-release # yum repolist Loaded plugins: fastestmirror Repodata is over 2 weeks old. Instal...
  • 웹지기 05-02 8160 0 0 댓글 0
  • 47 [ Server ][ Linux ] centos7 git 버젼업데이트
  • # make configure # ./configure --prefix=/usr # make all doc info @make all doc info 설치시 오류가 발생 @Can't locate ExtUtils/MakeMaker.pm 해결방법 # yum install perl-CPAN # sudo make install install-doc install-html install-info # git --...
  • 웹지기 04-01 8159 0 0 댓글 0
  • 45 [ server ][ linux ] CentOS7 certbot certificates 오류 ttribute…
  • # certbot certificates 이런명령을 내렸는데 오류가 발생햇다 yum update하면서 무언가 문제가 발생한것 같다. An unexpected error occurred: AttributeError: 'module' object has no attribute 'TLSSNI01' Please see the logfile '/tmp/tmpV1KtqF/log' for more details. # yum update pyth...
  • 웹지기 03-12 8088 0 0 댓글 0
게시물 검색

회원로그인

접속자집계

오늘
3,200
어제
14,234
최대
33,828
전체
8,472,270

그누보드5
Copyright © funyphp.com. All rights reserved.