본문 바로가기

728x90

전체 글

CentOS 7에 Node.js와 npm을 설치하는 방법 CentOS 7에 Node.js와 npm을 설치하는 방법 NodeSource yum 저장소 추가 https://github.com/nodesource/distributions 1. EPEL 저장소 추가 및 curl 패키지 설치 sudo yum install -y epel-release sudo yum install -y curl 2. NodeSource 저장소 추가 curl -fsSL https://rpm.nodesource.com/setup_17.x | sudo bash - $ curl -fsSL https://rpm.nodesource.com/setup_17.x | bash - ## Installing the NodeSource Node.js 17.x repo... ## Inspecting syste.. 더보기
[리눅스] sentry 설치 sentry 설치 요구 사항 - Docker 19.03.6+ - Compose 1.28.0+ - 4 CPU Cores - 8 GB RAM - 20 GB Free Disk Space 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ docker --version Docker version 19.03.13, build 4484c46d9d $ docker-compose --version docker-compose version 1.25.5, build 8a1c60f6 docker-compose 재설치 $ curl -SsL "https://github.com/docker/compose/releases/download/1.29.2/do.. 더보기
CentOS 7에서 ISO 이미지를 생성하기(mkisofs) CentOS 7에서 ISO 이미지를 생성하기(mkisofs) mkisofs는 ISO 이미지 생성을 지원하는 유용한 명령어입니다. 1. mkisofs 설치 mkisofs 패키지를 설치해야 합니다. genisoimage 패키지에 포함되어 있습니다. sudo yum install genisoimage 2. ISO 이미지 생성 mkisofs를 사용하여 ISO 이미지를 생성합니다. mkisofs -o letsencrypt.iso /mnt $ mkisofs -r -T -J -V "letsencrypt" -o letsencrypt.iso /tmp/letsencrypt I: -input-charset not specified, using utf-8 (detected in locale settings) 20.88% do.. 더보기
병렬 압축 - parallel compression 병렬 압축 - parallel compression pbzip2 : bzip2의 병렬 구현 https://launchpad.net/pbzip2 : PBZIP2는 pthread를 사용하고 SMP 시스템에서 거의 선형에 가까운 속도 향상을 달성하는 bzip2 블록 정렬 파일 압축기의 병렬 구현입니다. 이 버전의 출력은 bzip2 v1.0.2 이상과 완전히 호환됩니다(즉, pbzip2로 압축된 모든 항목은 bzip2로 압축 해제할 수 있음). PBZIP2는 pthreads 호환 C++ 컴파일러(예: gcc)가 있는 모든 시스템에서 작동해야 합니다. pbzip2 패키지 설치 yum install -y pbzip2 10GB 파일 생성 dd if=/dev/urandom of=file_10GB count=1024 b.. 더보기
[보안취약점] 리눅스 계정 잠금 임계값 설정 리눅스 계정 잠금 임계값 설정 점검 내용 : 사용자 계정 로그인 실패 시 계정잠금 임계값이 설정되어 있는지 점검 판단기준 : 계정 잠금 임계값을 10회 이하의 값으로 설정되어 있는 경우 점검 및 조치 방법 system-auth 파일 vim /etc/pam.d/system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so auth required pam_faildelay.so delay=2000000 auth sufficient pam_unix.so nullok try_first_pass auth requisite.. 더보기
CentOS 7에서 오라클 자바를 설치하는 방법 CentOS 7에서 오라클 자바를 설치하는 방법 웹 페이지(rpm 패키지 링크 복사) http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 오라클 자바 다운로드 wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm Java(JDK) 설치 sudo yum install jdk-8u172-linux-x64.rpm J.. 더보기
리눅스에서 메모리 캐시를 삭제하는 방법(cache flush) 리눅스에서 메모리 캐시를 삭제하는 방법(cache flush) Linux에서 메모리 캐시를 수동으로 삭제하는 것은 일반적으로 권장되지 않습니다. 메모리 캐시는 시스템 성능을 최적화하고 응용 프로그램의 실행을 가속화하는 데 도움을 주기 때문입니다. 그러나 특정 상황에서 메모리 캐시를 명시적으로 삭제해야 하는 경우가 있을 수 있습니다. 이를 수행하기 위한 몇 가지 방법이 있습니다. 참고: 메모리 캐시를 무분별하게 삭제하면 시스템 성능에 부정적인 영향을 미칠 수 있으므로 주의해서 사용해야 합니다. 1. 메모리 캐시를 비워주는 명령어 sync 명령을 사용하여 디스크에 쓰기 작업을 수행한 후 메모리 캐시를 비울 수 있습니다. sync 2. 메모리 캐시를 삭제하는 방법 메모리 캐시를 수동으로 삭제하려면 /proc .. 더보기
[리눅스] httpstat 웹 사이트 성능 확인 도구 httpstat 웹 사이트 성능 확인 도구 httpstat는 curl과 같은 도구로 http/https 프로세스를 시각화하고 기간을 표시합니다. 설치 환경 - macOS httpstat 설치(pip install) pip3 install httpstat httpstat 사용 방법 httpstat www.sangchul.kr httpstat sangchul.kr help 페이지 $ httpstat --help Usage: httpstat URL [CURL_OPTIONS] httpstat -h | --help httpstat --version Arguments: URL url to request, could be with or without `http(s)://` prefix Options: CURL_OPT.. 더보기

728x90