본문 바로가기

728x90
반응형

전체 글

gzip 명령어, gunzip 명령어 gzip 명령어, gunzip 명령어 gzip과 gunzip은 유닉스(리눅스) 시스템에서 사용되는 명령어로, 파일들을 압축하거나 해제하는데 사용됩니다. gzip은 파일을 압축하고, gunzip은 압축된 파일을 해제합니다. gzip 명령어의 기본 구문 gzip [옵션] [파일] gunzip 명령어의 기본 구문 gunzip [파일.gz] 주요 옵션 (gzip) -c: 압축한 파일을 표준 출력으로 출력 (stdout) -d 또는 --decompress: 압축 해제 -r 또는 --recursive: 디렉토리를 재귀적으로 압축 또는 해제 -v 또는 --verbose: 상세 정보 출력 사용 예시 파일 file.txt를 압축하여 file.txt.gz로 저장 gzip file.txt file.txt: 압축할 파일 fi.. 더보기
Jenkins의 관리자(admin) 비밀번호를 재설정하는 방법 Jenkins의 관리자(admin) 비밀번호를 재설정하는 방법 docker-compose.yml 파일 편집 vim docker-compose.yml version: '3.8' services: jenkins: image: jenkins/jenkins:lts #image: jenkins/jenkins:lts-jdk11 container_name: jenkins restart: always privileged: true #user: root environment: TZ: "Asia/Seoul" volumes: #- /usr/bin/docker:/usr/bin/docker - /var/run/docker.sock:/var/run/docker.sock - ./jenkins_home:/var/jenkins_hom.. 더보기
CentOS 7에서 PHP rdkafka 확장(Extension) 모듈을 설치하는 방법 CentOS 7에서 PHP rdkafka 확장(Extension) 모듈을 설치하는 방법 테스트 환경 nginx php-fpm PHP 버전 확인 php -v $ php -v PHP 7.3.27 (cli) (built: Feb 2 2021 10:32:50) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.27, Copyright (c) 1999-2018, by Zend Technologies PHP 저장소 버전 확인 yum info php | egrep 'Name|Arch|Version|Repo' 2 $ yum info p.. 더보기
리눅스 curl 명령어(curl bash -x) curl 명령어(curl bash -x) curl로 스크립트를 다운로드하기 curl -Ssf https://sangchul.kr/scripte/webconfsync.sh -o /tmp/webconfsync.sh curl로 스크립트를 다운로드하고 실행하기 curl -Ssf https://sangchul.kr/scripte/webconfsync.sh | bash -x wget을 사용하여 스크립트를 다운로드하고 실행하기 wget -qO - https://sangchul.kr/scripte/webconfsync.sh | bash -x 참고URL - curl 명령어 : https://scbyun.com/1005 더보기
[기타] Mac에서 스크린샷(화면캡쳐) 찍기 Mac에서 스크린샷(화면캡쳐) 찍기 shift + cmd + 3 : 스크린샹(전체 화면 캡쳐) shift + cmd + 4 : 화면 일부를 캡처하는 방법(부분 화면 캡쳐) shift + cmd + 4 + space : 원도우 또는 메뉴를 캡쳐하는 방법 스크린샷이 저장되는 위치 스크린샷 저장 위치 : ~/Documents/screencapture/ defaults write com.apple.screencapture location ~/Documents/screencapture/ killall SystemUIServer 참고사이트 - https://support.apple.com/ko-kr/HT201361 더보기
macOS에서 Terraform을 설치하는 방법 macOS에서 Terraform을 설치하는 방법 1. 홈브류(Homebrew) 패키지 매니저를 사용하여 설치 만약 홈브류가 설치되어 있지 않다면, 먼저 홈브류를 설치합니다. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 설치 후에는 다음 명령어로 Terraform을 설치합니다. hashicorp tap 저장소 설치 brew tap hashicorp/tap terraform 설치 brew install hashicorp/tap/terraform 2. 수동 다운로드 및 설치 Terraform 공식 웹사이트에서 바이너리 파일을 다운로드하고 설치할 수도 있습니다. https://www.. 더보기
ssh 접속 시 no matching key exchange method found 에러 ssh 접속 시 no matching key exchange method found 에러 테스트 환경 $ cat /etc/redhat-release CentOS release 5.6 (Final) $ getconf LONG_BIT 32 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [에러] Unable to negotiate with 192.168.0.101 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-h.. 더보기
GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하려면 GitLab 컨테이너 내부에서 gitlab-rails 콘솔을 사용하여 비밀번호를 변경해야 합니다. GitLab 컨테이너에 로그 확인 docker-compose logs -f $ docker-compose logs -f ... gitlab | gitlab | == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb gitlab | Administrator account created: gitlab | gitlab | login: root gitlab | password: ****** gitlab .. 더보기

728x90
반응형