본문 바로가기

Linux

C276x260.fwebp.q85 [draft] 아파치 MPM Worker 모듈의 값을 계산 방법 아파치 MPM Worker 모듈의 값을 계산 방법1. CPU 코어 수 확인CPU 코어 수를 확인합니다. 리눅스에서는 nproc 명령어를 사용하여 확인할 수 있습니다.$ nproc42. 메모리 총 용량 확인메모리 총 용량을 확인합니다. 리눅스에서는 free 명령어를 사용하여 확인할 수 있습니다.$ free -h total used free shared buff/cache availableMem: 7.8Gi 234Mi 7.2Gi 1.0Mi 306Mi 7.3GiSwap: 4.0Gi 0B 4.0GiMPM Worker 계산하는 방법1. .. 더보기
C276x260.fwebp.q85 [draft] 아파치 웹서버 MPM(prefork, worker) 설정 방법 아파치 웹서버 MPM(prefork, worker) 설정 방법아파치 웹 서버의 MPM (Multi-Processing Module)은 웹 서버가 처리할 수 있는 동시 연결 수와 처리 방식을 결정합니다. 아파치 웹 서버의 MPM 중에서는 prefork와 worker MPM이 있으며, 각각의 특징과 설정 방법을 알아보겠습니다.prefork MPMprefork MPM은 각 연결을 처리하는 프로세스를 별도로 생성하는 방식입니다. 이 방식은 안정적이고 예측 가능한 성능을 제공하지만, 동시 연결 수가 적을 경우에는 성능이 낮아집니다. 이러한 이유로 prefork MPM은 일반적으로 PHP와 같은 스크립트 언어를 사용하는 웹 사이트에서 사용됩니다.prefork MPM 설정 방법1. 아파치 구성 파일(httpd.con.. 더보기
C276x260.fwebp.q85 [draft] 우분투에서 APT 패키지 매니저를 사용하여 APM 스택을 설치하는 방법 우분투에서 APT 패키지 매니저를 사용하여 APM(Apache, PHP, MySQL) 스택을 설치하는 방법테스트 환경운영체제 정보$ cat /etc/os-release | egrep PRETTY_NAMEPRETTY_NAME="Ubuntu 22.04 LTS"APT 업데이트sudo apt-get updateApache2 설치 및 설정Apache 설치sudo apt-get install -y apache2 ssl-certApache 설정echo "ServerName localhost" >> /etc/apache2/apache2.confApache 모듈 활성화a2enmod rewritea2enmod headersa2enmod ssla2dismod -f autoindexApache 버전 확인apache2 -ver.. 더보기
C276x260.fwebp.q85 [draft] 우분투에 CBand 모듈을 설치하고 설정하는 방법 우분투에 CBand 모듈을 설치하고 설정하는 방법CBand는 아파치 웹 서버의 대역폭 제어 모듈로서 대역폭 사용량 제한, 대역폭 제한 초과 시 처리, 그래프 출력 등의 기능을 제공합니다.1. Apache 설치sudo apt-get updatesudo apt-get install -y apache2Apache 버전 확인$ apache2 -vServer version: Apache/2.4.52 (Ubuntu)Server built: 2023-10-26T13:44:44Apache 서비스 확인sudo systemctl status apache2.service2. CBand 모듈 설치CBand 모듈을 설치하려면 아래 명령어를 입력합니다.sudo apt-get install libapache2-mod-cband.. 더보기
C276x260.fwebp.q85 [draft] getconf 명령어 getconf 명령어getconf 명령어는 시스템에서 컴파일된 시스템 상수 및 옵션 값을 출력하는 명령어입니다. 예를 들어, getconf PATH 명령어는 시스템의 PATH 환경 변수 값을 출력합니다. getconf 명령어는 POSIX 표준에서 지정된 시스템 상수 및 시스템 옵션 값을 출력합니다. 따라서 시스템의 컴파일러, 헤더 파일, 라이브러리 등의 정보를 확인할 수 있습니다. getconf 명령어는 다음과 같은 옵션을 사용할 수 있습니다.-a : 모든 시스템 상수 값을 출력합니다. : 지정한 시스템 변수의 값을 출력합니다. 예를 들어, getconf PAGE_SIZE 명령어는 페이지 크기 값을 출력합니다.getconf 명령어를 사용하여 시스템 상수 값을 확인하면, 해당 상수를 사용하는 프로그램을 작.. 더보기
C276x260.fwebp.q85 [draft] 우분투 환경에서 webalizer를 설치하는 방법 우분투 환경에서 webalizer를 설치하는 방법Webalizer는 Apache 웹 서버 로그 파일을 분석하여 통계를 생성하는 무료 로그 분석 도구입니다. Webalizer 다운로드Webalizer를 다운로드하려면 먼저 공식 웹사이트에서 Webalizer를 다운로드해야 합니다. 아래 명령을 사용하여 Webalizer 소스 코드를 다운로드하세요.wget https://downloads.sourceforge.net/project/webalizer/webalizer/2.23-08/webalizer-2.23-08-src.tgz의존성 패키지 설치Webalizer를 빌드하기 위해 몇 가지 의존성 패키지를 설치해야 합니다. 아래 명령을 사용하여 필요한 패키지를 설치하세요.sudo apt-get updatesudo a.. 더보기
C276x260.fwebp.q85 [draft] How To Install GoAccess on CentOS 8 How To Install GoAccess on CentOS 8install goaccess$ yum install -y goaccessgoaccess version infomation$ goaccess --versionGoAccess - 1.5.4.For more details visit: https://goaccess.io/Copyright (C) 2009-2020 by Gerardo OrellanaBuild configure arguments: --enable-debug --enable-utf8 --enable-geoip=legacy --with-getline --with-opensslgoaccess execution$ goaccess access.log --log-format=COMBIN.. 더보기
C276x260.fwebp.q85 [draft] GoAccess를 설치하고 로그를 분석하는 방법 GoAccess를 설치하고 로그를 분석하는 방법goaccess : Real-time web log analyzer and interactive viewer1. goaccess 설치$ yum install -y goaccess$ goaccess --versionGoAccess - 1.5.4.For more details visit: https://goaccess.io/Copyright (C) 2009-2020 by Gerardo OrellanaBuild configure arguments: --enable-debug --enable-utf8 --enable-geoip=legacy --with-getline --with-openssl2. 로그 파일 분석아파치 로그$ pwd/var/log/httpd$.. 더보기