Linux 썸네일형 리스트형 CentOS 8에서 Webalizer를 설치하는 방법 CentOS 8에서 Webalizer를 설치하는 방법Webalizer는 웹 서버 로그를 분석하고 웹 사이트 트래픽을 시각화하는 데 사용되는 오픈 소스 웹 로그 분석 도구입니다. Webalizer는 다양한 유형의 웹 서버 로그를 지원하며, 다양한 시간 범위 및 요약 수준으로 웹 사이트 트래픽을 분석할 수 있습니다. Webalizer는 또한 웹 사이트 트래픽의 원천을 분석하고, 가장 인기 있는 웹 페이지를 식별하고, 각 웹 페이지의 평균 다운로드 시간을 계산할 수 있습니다. Webalizer를 사용하려면 먼저 웹 서버 로그를 Webalizer의 데이터베이스에 저장해야 합니다. Webalizer는 다양한 방법으로 웹 서버 로그를 가져올 수 있습니다. 가장 일반적인 방법은 Webalizer를 웹 서버에 설치하고.. 더보기 rpcgen install for centos 8 rpcgen install for centos 8CentOS-PowerTools.repo create file$ vim /etc/yum.repos.d/CentOS-PowerTools.repo# CentOS-PowerTools.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors... 더보기 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 버전 정보 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets http code 출력 curl -s -o /dev/nul.. 더보기 Apache Kafka(Zookeeper)를 클러스터 구성하는 방법 Apache Kafka(Zookeeper)를 클러스터 구성하는 방법구성 환경$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)$ getconf LONG_BIT64카프카 클러스터 다이어그램이미지 출처 : http://www.liferaysavvy.com/2021/07/setup-kafka-cluster.htmlApache Kafka(Zookeeper)를 클러스터 구성하는 방법java 설치$ yum install -y java-11-openjdk.x86_64$ java --versionopenjdk 11.0.13 2021-10-19 LTSOpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)OpenJDK 6.. 더보기 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치 yum install epel-release Supervisor 설치 supervisor 패키지 설치 yum install -y supervisor supervisor 버전 정보 확인 supervisord --version $ supervisord --version 3.4.0 Supervisor 서비스 시작 및 활성화 systemctl --now enable supervisord $ systemctl status supervisord ● supervisord.service - Process Monitoring and Control Daemon Load.. 더보기 도커 컨테이너 터미널 프롬프트(PS1) 색상 변경 도커 컨테이너 터미널 프롬프트(PS1) 색상 변경Dockerfile에서 컨테이너 내에서 사용할 터미널 프롬프트(PS1)를 설정하려면 Dockerfile 내에서 ENV 지시문을 사용하여 PS1 환경 변수를 설정할 수 있습니다. Dockerfile 파일 생성vim DockerfileFROM centos:7LABEL website="sangchul.kr"ENV PS1="\[\e[33m\]\u\[\e[m\]\[\e[37m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\]:\[\033[01;31m\]\W\[\e[m\]$ "RUN echo 'PS1=$PS1' >> ~/.bashrcDocker 이미지 빌드docker build --tag centos-ps1:0.1 .컨테이너 실행docker run -it --r.. 더보기 HAProxy 로깅(haproxy logging) 설정하는 방법 HAProxy 로깅(haproxy logging) 설정하는 방법HAProxy는 로드 밸런서 및 프록시 서버로 사용되는 오픈 소스 소프트웨어입니다. 로깅은 HAProxy에서 중요한 기능 중 하나로, 문제 해결 및 성능 모니터링을 위해 필요합니다. HAProxy의 로깅은 기본적으로 로그 파일 또는 로그 서버로 전송하는 방식으로 설정할 수 있습니다.HAProxy 로깅 설정 방법로그 형식 정의하기HAProxy는 로그를 기록할 때 사용할 로그 형식을 정의해야 합니다. 로그 형식은 원하는 정보를 포함하는 서식으로 구성됩니다. 예를 들어, IP 주소, 시간, 요청 메서드, 상태 코드 등을 포함할 수 있습니다.로그 형식은 log-format 설정으로 정의합니다.로그 목적지 선택하기로그는 로그 파일 또는 원격 로그 서버.. 더보기 stress 명령어 stress 명령어 - 지정된 하위 시스템을 지정된 부하에 주는 도구 stress 패키지 설치 yum install -y stress stress --version $ stress --version stress 1.0.4 stress 명령어 옵션 stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s $ stress --help `stress' imposes certain types of compute stress on your system Usage: stress [OPTION [ARG]] ... -?, --help show this help statement --version show version statement -v, --verbose be ve.. 더보기 이전 1 ··· 13 14 15 16 17 18 19 ··· 45 다음