본문 바로가기

728x90

전체 글

GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하려면 GitLab 컨테이너 내부에서 gitlab-rails 콘솔을 사용하여 비밀번호를 변경해야 합니다. GitLab 컨테이너에 로그 확인 docker-compose logs -f $ docker-compose logs -f ... gitlab | gitlab | == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb gitlab | Administrator account created: gitlab | gitlab | login: root gitlab | password: ****** gitlab .. 더보기
Mac Time Machine 백업 시간 줄이기 Mac Time Machine 백업 시간 줄이기 낮은 프로세스 우선 순위 조절을 제거하여 타임머신 속도를 향샹 설정 sudo sysctl debug.lowpri_throttle_enabled=0 > sudo sysctl debug.lowpri_throttle_enabled=0 Password: debug.lowpri_throttle_enabled: 1 -> 0 확인 sysctl debug.lowpri_throttle_enabled > sysctl debug.lowpri_throttle_enabled debug.lowpri_throttle_enabled: 0 더보기
CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 EPEL 저장소 설치 yum install -y epel-release 필수 패키지 설치 yum install -y httpd httpd-devel Evasive 모듈 설치 yum install -y mod_evasive Evasive 활성화 및 설정 vim /etc/httpd/conf.d/mod_evasive.conf LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so apachectl -M | egrep evasive $ apachectl -M | egrep evasive evasive20_module (shared) Evasive 모듈에 대한 설정 m.. 더보기
netstat 명령어 netstat 명령어 netstat 명령어는 네트워크 통계 정보를 확인하거나 현재의 네트워크 연결 상태를 조회하기 위해 사용되는 명령어입니다. 이를 통해 로컬 시스템에서 수신 중인 및 송신 중인 네트워크 연결, 라우팅 테이블, 인터페이스 상태 등의 정보를 확인할 수 있습니다. netstat 상태(State) state description ESTABLISHED 소켓에 연결이 설정되어 있습니다. SYN_SENT 소켓이 연결을 적극적으로 설정하려고 시도하고 있습니다. SYN_RECV 네트워크에서 연결 요청이 수신되었습니다. FIN_WAIT1 소켓이 닫히고 연결이 종료됩니다. FIN_WAIT2 연결이 닫히고 소켓이 원격 끝에서 종료되기를 기다리고 있습니다. TIME_WAIT 소켓은 네트워크에 남아 있는 패킷을.. 더보기
tee 명령어 tee 명령어 tee 명령어는 리눅스나 유닉스 환경에서 사용되는 명령어 중 하나로 표준 입력으로부터 입력을 받아 여러 개의 출력 스트림으로 출력하는 명령어입니다. 특히 파일과 표준 출력 모두에 출력할 수 있어서 유용하게 사용됩니다. (표준출력(stdout)을 화면과 파일로 동시에 출력하는 리눅스 명령어) 기본적인 구문 [입력 명령어] | tee [옵션] 파일명 위 명령어를 실행하면, 입력 명령어를 실행하고 그 결과를 출력 파일명에 지정한 파일과 표준 출력으로 출력합니다. 만약 출력 파일명이 지정되지 않으면 tee 명령어는 표준 출력으로만 결과를 출력합니다. 출력 파일이 이미 존재하는 경우 tee 명령어는 해당 파일을 덮어쓰게 됩니다. 이를 방지하고자 한다면 -a 옵션을 사용하여 이어쓰기 모드로 파일에 출.. 더보기
[linux] How To Install GoAccess on CentOS 8 How To Install GoAccess on CentOS 8 install goaccess $ yum install -y goaccess goaccess version infomation $ goaccess --version GoAccess - 1.5.4. For more details visit: https://goaccess.io/ Copyright (C) 2009-2020 by Gerardo Orellana Build configure arguments: --enable-debug --enable-utf8 --enable-geoip=legacy --with-getline --with-openssl goaccess execution $ goaccess access.log --log-format=C.. 더보기
GoAccess를 설치하고 로그를 분석하는 방법 GoAccess를 설치하고 로그를 분석하는 방법 goaccess : Real-time web log analyzer and interactive viewer 1. goaccess 설치 $ yum install -y goaccess $ goaccess --version GoAccess - 1.5.4. For more details visit: https://goaccess.io/ Copyright (C) 2009-2020 by Gerardo Orellana Build configure arguments: --enable-debug --enable-utf8 --enable-geoip=legacy --with-getline --with-openssl 2. 로그 파일 분석 아파치 로그 $ pwd /var/log.. 더보기
CentOS 8에서 Webalizer를 설치하는 방법 CentOS 8에서 Webalizer를 설치하는 방법 Webalizer는 웹 서버 로그를 분석하고 웹 사이트 트래픽을 시각화하는 데 사용되는 오픈 소스 웹 로그 분석 도구입니다. Webalizer는 다양한 유형의 웹 서버 로그를 지원하며, 다양한 시간 범위 및 요약 수준으로 웹 사이트 트래픽을 분석할 수 있습니다. Webalizer는 또한 웹 사이트 트래픽의 원천을 분석하고, 가장 인기 있는 웹 페이지를 식별하고, 각 웹 페이지의 평균 다운로드 시간을 계산할 수 있습니다. Webalizer를 사용하려면 먼저 웹 서버 로그를 Webalizer의 데이터베이스에 저장해야 합니다. Webalizer는 다양한 방법으로 웹 서버 로그를 가져올 수 있습니다. 가장 일반적인 방법은 Webalizer를 웹 서버에 설치하.. 더보기

728x90