본문 바로가기

728x90

전체 글

카프카 producer와 consumer 테스트 카프카 producer와 consumer 테스트 카프카 토픽 생성 topic list kafka-topics.sh --list --bootstrap-server localhost:9092 topic create replication-factor : 복제본 개수(2) partitions : 파티션 개수(3) kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 2 --partitions 3 --topic helloworld $ kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 2 --partitions 3 --topic hel.. 더보기
[리눅스] Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 구성 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 카프카 클러스터 다이어그램 Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 java 설치 $ yum install -y java-11-openjdk.x86_64 $ java --version openjdk 11.0.13 2021-10-19 LTS OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8-LTS, mixed mode, s.. 더보기
docker-compose를 사용하여 ngrinder 컨트롤러 및 에이전트를 설정하는 방법 docker-compose를 사용하여 ngrinder 컨트롤러 및 에이전트를 설정하는 방법 1. Docker 및 Docker Compose 설치 2. Docker Compose 파일 생성 vim docker-compose.yml version: '3.8' services: controller: image: ngrinder/controller:latest restart: always container_name: controller hostname: controller sysctls: - net.core.somaxconn=65000 ports: - 8888:80 - 16001:16001 - 12000-12009:12000-12009 volumes: - /usr/share/zoneinfo/Asia/Seoul:.. 더보기
AWS CLI를 사용하여 AWS EC2 인스턴스 정보를 조회하는 방법 AWS CLI를 사용하여 AWS EC2 인스턴스 정보를 조회하는 방법 AWS CLI를 사용하여 AWS EC2 인스턴스 정보를 조회하려면 describe-instances 명령어를 사용합니다. 1. AWS CLI 설치 AWS CLI가 설치되어 있지 않은 경우 먼저 설치해야 합니다. 2. AWS CLI 구성 AWS CLI를 사용하기 위해 AWS 계정과 연결되는 설정을 해야 합니다. 터미널에서 다음 명령어를 실행하고 AWS 계정의 Access Key ID와 Secret Access Key 그리고 기본 리전을 설정합니다. aws configure 3. EC2 인스턴스 정보 조회 EC2 인스턴스 정보를 조회하는 명령어입니다. aws ec2 describe-instances 이 명령어는 현재 AWS 계정에 있는 모.. 더보기
Let's Encrypt(certbot)에서 SSL 인증서를 발급받는 방법 Let's Encrypt(certbot)에서 SSL 인증서를 발급받는 방법 1. Standalone 모드로 인증서 발급하기 이 방법은 웹 서버가 없는 경우에 사용됩니다. Certbot은 자체적으로 웹 서버를 실행하고 ACME 도메인 검증을 처리합니다. "독립 실행형" 웹 서버를 사용하여 인증서를 가져옵니다. 포트 80을 사용할 수 있어야 합니다. 이 기능은 웹 서버가 없거나 로컬 웹 서버와의 직접 통합이 지원되지 않거나 원하지 않을 때 유용합니다. 80(HTTP) 또는 443(HTTPS) 포트 오픈되어 있어야함(방화벽 정책 오픈) 80(HTTP) 또는 443(HTTPS)을 사용(기존 웹 서버 중단) 도메인이 자신의 서버에 연결되어 있어야함(A 레코드 설정) certbot certonly --standal.. 더보기
[AWS] EC2 Instance Connect 설정 EC2 Instance Connect 설정 1. Amazon Linux 2에 EC2 Instance Connect(ec2-instance-connect) 설치 yum install ec2-instance-connect 인터스턴 생성 시 ec2-instance-connect 패키지기 포함되어 있나 봐요(설치되어 있네요 ㅠㅠ) $ sudo yum install -y ec2-instance-connect Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Package ec2-instance-connect-1.1-14.amzn2.noarch already installed and latest version Nothing to do /o.. 더보기
[AWS] AWSCLI(awscli) 설치 및 기타 도구 설정 AWSCLI(awscli) 설치 및 기타 도구 설정 AWSCLI(AWS Command Line Interface) 설치 curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install aws --version $ aws --version aws-cli/2.3.2 Python/3.8.8 Linux/4.14.246-187.474.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off 기타(jq) 도구 설정 yum install -y jq 참고URL - aws 최신 버전의 AWSCLI(awscli) 설치 : https://scbyun.c.. 더보기
[명령어] find 명령어 find 명령어 find 명령의 기본 구문 find [검색 경로] [옵션] [검색 조건] 유용한 find 명령의 옵션 -type: 파일 형식으로 검색합니다. 예를 들어, -type f는 일반 파일만 검색합니다. -size: 파일 크기로 검색합니다. 예를 들어, -size +10M는 10MB보다 큰 파일을 검색합니다. -mtime: 파일 수정 시간으로 검색합니다. 예를 들어, -mtime -7은 7일 이내에 수정된 파일을 검색합니다. -exec: 검색된 파일에 대해 지정된 명령을 실행합니다. 예를 들어, -exec ls -l {} \;는 검색된 파일의 자세한 정보를 출력합니다. 생성된 지 30일 이상 된 파일만 삭제 crontab -e 0 2 * * * find /var/spool/clientmqueue .. 더보기

728x90