본문 바로가기

728x90

리눅스

Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법 Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법 DNS 모드는 도메인 소유권 검증을 DNS 레코드를 통해 처리하는 방식입니다. EPEL 패키지 설치 yum install -y epel-release 1. Certbot 설치 Certbot을 설치합니다. CentOS 7의 경우 다음과 같이 수행할 수 있습니다. sudo yum install certbot python2-certbot-nginx 설치된 패키지는 시스템에 따라 다를 수 있습니다. 2. DNS API 키 준비 DNS 모드로 SSL 인증서를 발급받기 위해서는 해당 DNS 제공업체의 API 키가 필요합니다. Certbot이 DNS 레코드를 자동으로 추가하고 수정하도록 하기 위함입니다. DNS 제공업체별로 다양한 설정이 필요하.. 더보기
[리눅스] How to install JMeter on Linux How to install JMeter on Linux Installation platform $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" Installing JAVA $ amazon-linux-extras install java-openjdk11 $ java -version openjdk version "11.0.7" 2020-04-1.. 더보기
CentOS 8 Stream 설치(CentOS 8 스트림 설치) CentOS 8 Stream 설치(CentOS 8 스트림 설치) iso 다운로드 download URL : https://www.centos.org/download ISO Download URL http://mirror.kakao.com/centos/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-20210120-dvd1.iso Oracle VirtualBox에 VM 생성 download URL : https://www.virtualbox.org CentOS Stream 설치 - Keyboard : 한국어 - 언어 지원 : 한국어, English - 시간 및 날짜 : 아시아/서울 - 소프트웨어 선택 : 최소 설치(표준, 레거시 UNIX 호환성, 개발용 툴) - 설치 대상 :.. 더보기
iperf3를 설치하고 사용하는 방법 iperf3를 설치하고 사용하는 방법 TCP/UDP 대역폭 성능 측정 도구 iperf3는 네트워크 대역폭을 측정하기 위한 도구로 서버와 클라이언트 간의 대역폭 및 성능을 테스트하는 데 사용됩니다. 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 1. iperf3 패키지 설치 서버, 클라이언트 패키지 설치 CentOS 시스템 yum install -y iperf3 Ubuntu 시스템 sudo apt-get update sudo apt-get install iperf3 iperf3 버전 정보 iperf3 --version $ iperf3 --version iperf 3.1.7 Linux master 3.10.0-1160.36.2.e.. 더보기
리눅스에서 HTTP Proxy Server 설정하기 리눅스에서 HTTP Proxy Server 설정하기 1. 로그인 세션 동안만 유지되는 방법 export http_proxy=[proxy서버]:[proxy포트] export https_proxy=[proxy서버]:[proxy포트] unset http_proxy unset https_proxy 2. 로그인 세션이 종료된 후에도 프록시를 유지시키는 방법 *** .bashrc, .bash_profile, /etc/profile vim ~/.bashrc export http_proxy=[proxy서버]:[proxy포트] export https_proxy=[proxy서버]:[proxy포트] source ~/.bashrc 3. Proxy 설정 적용 확인 env | grep -i proxy http_proxy 및 ht.. 더보기
CentOS 7에서 KVM 하이퍼바이저를 설치하는 방법 CentOS 7에서 KVM(Kernel-based Virtual Machine) 하이퍼바이저를 설치하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) $ getconf LONG_BIT 64 $ uname -a Linux ntvm-peer01 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux KVM 호스트 확인 시스템이 KVM을 지원하는지 확인해야 합니다. grep -E '(vmx|svm)' /proc/cpuinfo 출력이 0이 아니라면, CPU에서 가상화 확장이 지원됩니다. KVM 모듈 로드 KVM 모듈.. 더보기
취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기 취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기 X-Content-Type-Options ###Apache Header set X-Content-Type-Options nosniff ###Nginx add_header X-Content-Type-Options nosniff; X-XSS-Protection ###Apache Header set X-XSS-Protection "1; mode=block" ###Nginx add_header X-XSS-Protection "1; mode=block"; X-Frame-Options ###Apache Header always append X-Frame-Options DENY ###Nginx add_header X-Frame-Options “DENY”; HTTP.. 더보기
PHP MongoDB 확장 모듈을 설치하는 방법(mongodb.so 모듈) PHP MongoDB 확장 모듈을 설치하는 방법(mongodb.so 모듈) MongoDB PHP 확장 모듈 소스 코드 다운로드 git clone https://github.com/mongodb/mongo-php-driver.git 빌드 및 설치 cd mongo-php-driver/ git submodule update --init /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make all make install $ make install --output-- PATH="$PATH:/sbin" ldconfig -n /usr/local/src/mongo-php-driver/modules -------.. 더보기

728x90