본문 바로가기

728x90

리눅스

[draft] Siege를 설치 및 사용하는 방법 Siege를 설치 및 사용하는 방법Siege는 웹 사이트 및 웹 애플리케이션의 성능 및 부하 테스트를 수행하는 데 사용되는 명령 줄 도구입니다. 이를 사용하여 다양한 웹 사이트 또는 웹 애플리케이션의 부하 테스트를 수행할 수 있습니다.이번에는 Siege의 설치 방법과 사용 방법을 설명하겠습니다.Siege 설치 방법MacOSbrew install siegeDebianapt-get updatesudo apt-get install -y siegeRedHatyum install -y epel-releasesudo yum install -y siegeSiege 사용 방법기본 사용법siege -c [concurrent users] -t [time in seconds] [url]위 명령에서 -c 옵션은 동시 사용자 .. 더보기
[draft] find 명령어 find 명령어find 명령어는 Linux와 Unix 기반 시스템에서 파일과 디렉토리를 검색하는데 사용되는 강력하고 다용도의 명령어입니다. find 명령어를 사용하면 파일 이름, 크기, 유형, 수정 시간 등 다양한 속성에 따라 파일들을 검색할 수 있습니다.find 명령어 기본 문법find [-H] [-L] [-P] [-Olevel] [-D debugopts] [path...] [expression]find [검색할 경로] [옵션] [동작]find 명령어 옵션find 명령어는 검색 대상 디렉토리와 함께 다양한 옵션을 사용할 수 있습니다.옵션설명-name파일 이름으로 검색-type파일 타입으로 검색 (f: 일반 파일, d: 디렉토리, l: 심볼릭 링크)-size파일 크기로 검색-mtime파일 수정 시간으로 .. 더보기
[draft] 우분투에서 Filebeat를 설치하는 방법 우분투에서 Filebeat를 설치하는 방법1. Filebeat 설치Elasticsearch GPG 키 추가curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --batch --yes --dearmor -o /usr/share/keyrings/elastic-archive-keyring.gpgAPT 저장소 추가echo "deb [signed-by=/usr/share/keyrings/elastic-archive-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list패키.. 더보기
[draft] Ubuntu 환경에서 Metricbeat 설치하는 방법 Ubuntu 환경에서 Metricbeat 설치하는 방법Metricbeat 설치하기로컬 저장소 업데이트sudo apt-get updateMetricbeat 패키지 설치sudo apt-get install -y metricbeat구성 파일(metricbeat.yml) 편집vim /etc/metricbeat/metricbeat.ymlMetricbeat 서비스 시작systemctl --now enable metricbeat.serviceMetricbeat 서비스 상태 확인systemctl status metricbeat.service메트릭 수집 모듈 활성화 및 구성metricbeat modules list$ metricbeat modules listEnabled:systemDisabled:activemqaero.. 더보기
[draft] Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node)apt 저장소 업데이트sudo apt-get updateapt-transport-https 패키지 설치sudo apt-get install -y apt-transport-httpsElasticsearch 공식 GPG 키 추가wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpgElasticsearch 저장소 추가echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.. 더보기
[draft] PHP의 설정 파일인 php.ini 파일의 위치를 찾는 방법 PHP의 설정 파일인 php.ini 파일의 위치를 찾는 방법1. 명령줄을 사용하여 찾기php -i | grep "Configuration File"$ php -i | grep "Configuration File"Configuration File (php.ini) Path: /etc/php.ini또는php --ini | grep php.ini$ php --ini | grep php.ini Configuration File (php.ini) Path: /usr/local/apache2/confLoaded Configuration File: /usr/local/apache2/conf/php.ini2. phpinfo() 함수를 사용하여 찾기PHP 스크립트를 작성하고 ph.. 더보기
[draft] Fleet Server 호스트 추가 Fleet Server 호스트 추가다이어그램(diagram)Elasticsearch에서 보안 및 API 키 인증 기능을 활성화elasticsearch 구성 파일 편집xpack.security.authc.api_key.enabled: true 추가vim /etc/elasticsearch/elasticsearch.yml...# Enable security featuresxpack.security.enabled: truexpack.security.enrollment.enabled: truexpack.security.authc.api_key.enabled: true# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and .. 더보기
[draft] Metricbeat 설치하는 방법 Metricbeat 설치하는 방법Metricbeat 패키지 설치yum install --enablerepo=elasticsearch -y metricbeatMetricbeat(metricbeat.yml) 설정 확인cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#'$ cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#'metricbeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled: falsesetup.template.settings: index.number_of_shards: 1 index.codec: best_compressi.. 더보기

728x90