Repository 추가 $ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm python3 및 필요 라이브러리 설치 $ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip python 버전 확인 $ python3.6 -V Python 3.6.x python3 alias 추가 $ sudo ln -s /bin/python3.6 /bin/python3
출처 : https://gist.github.com/denji/12b3a568f092ab951456 Generate private key (.key) # Key considerations for algorithm "RSA" ≥ 2048-bit $ openssl genrsa -out server.key 2048 # Key considerations for algorithm "ECDSA" ≥ secp384r1 # List ECDSA the supported curves (openssl ecparam -list_curves) $ openssl ecparam -genkey -name secp384r1 -out server.key Generation of self-signed(x509) public key (PE..
참고 : https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md * 이 글은 이미 인증서를 가지고 있는 경우의 내용이며 yum을 사용하여 gitlab를 설치한 경우 이다. * 그리고 아래의 내용은 gitlab.example.com 도메인 사용한 예시 이다. 인증서 파일 복사 (root 권한 사용) # etc/gitlab/ssl 폴더 생성 $ mkdir -p /etc/gitlab/ssl # 인증서 파일을 gitlab의 ssl 폴더에 복사 $ cp [인증서 파일].crt /etc/gitlab/ssl $ cp [인증서 파일].key /etc/gitlab/ssl GitLab 설정 파일 열기 (root 권한 사용) $ vi /e..
Backup yum을 사용하여 gitlab을 설치한 경우 아래의 명령 사용 $ sudo gitlab-rake gitlab:backup:create위 명령을 실행하고 나면 백업된 파일은 /var/opt/gitlab/bakups 폴더에 생성 된다. 소스를 가져다 gitlab을 설치한 경우 아래의 명령 사용 $ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production 복구는 나중에 직접 해본 후 글을 남길 예정... 참고: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md
아래는 예제 이다. package main import ( "fmt" "os" "syscall" ) // ansi color const ( black = "\033[1;30m%s\033[0m" red = "\033[1;31m%s\033[0m" green = "\033[1;32m%s\033[0m" yellow = "\033[1;33m%s\033[0m" blue = "\033[1;34m%s\033[0m" purple = "\033[0;36m%s\033[0m" cyan = "\033[0;36m%s\033[0m" white = "\033[0;37m%s\033[0m" ) func init() { // cmd 에서 ansi color 활성화 시키는 부분 handle := syscall.Handle(os.Stdout..
- Total
- Today
- Yesterday