본문 바로가기

반응형

리눅스

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.. 더보기
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... 더보기
nmap 명령어 nmap 명령어Nmap은 네트워크 스캐닝 및 서비스 탐지 도구로서, 시스템 및 네트워크 보안 테스트 및 관리에 매우 유용한 도구 중 하나입니다. Nmap은 다양한 운영 체제에서 작동하며, 네트워크에서 호스트 및 서비스 정보를 수집할 수 있습니다.nmap 설치centosyum install -y nmapubuntuapt install -y nmapnmap 버전$ nmap -VNmap version 6.40 ( http://nmap.org )Platform: x86_64-redhat-linux-gnuCompiled with: nmap-liblua-5.2.2 openssl-1.0.2k libpcre-8.32 libpcap-1.5.3 nmap-libdnet-1.12 ipv6Compiled without:Avai.. 더보기
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.. 더보기
교차 출처 리소스 공유(Cross-Origin Resource Sharing, CORS) 교차 출처 리소스 공유(Cross-Origin Resource Sharing, CORS) Access-Control-Allow-Origin header Access-Control-Allow-Origin은 CORS 헤더입니다. CORS 또는 Cross Origin Resource Sharing은 브라우저가 원본 A에서 실행 중인 사이트가 원본 B에서 리소스를 요청할 수 있도록 하는 메커니즘입니다. 에러 Access to images at 'https://img.sangchul.kr/img/123.png' from origin 'https://www.sangchul.kr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is .. 더보기
NGINX와 PHP-FPM을 연동하여 PHP 스크립트를 처리하는 방법 NGINX와 PHP-FPM을 연동하여 PHP 스크립트를 처리하는 방법1. NGINX 설치https://scbyun.com/1078 2. PHP-FPM 설치https://scbyun.com/10803. NGINX 설정nginx(fastcgi_params) 설정cat > /etc/nginx/fastcgi_paramsfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;fastcgi_param PATH_INFO $fastcgi_path_info;EOF(or)vim /etc/nginx/fastcgi_para.. 더보기
mkdir 명령어 mkdir 명령어 mkdir 명령어는 Linux 및 UNIX 기반 시스템에서 디렉토리(Directory)를 생성하는 데 사용되는 명령어입니다. mkdir은 Make Directory의 줄임말입니다. 디렉토리는 파일을 그룹화하고 구조화하는 데 사용되며, 파일 시스템 내에서 계층적인 구조를 형성합니다. mkdir 명령어의 기본적인 구문은 다음과 같습니다. mkdir [옵션] 디렉토리명 일반적으로 사용되는 주요 옵션은 다음과 같습니다. -p: 지정된 경로에 디렉토리가 없는 경우, 중간 경로에 존재하지 않는 디렉토리도 함께 생성합니다. 이 옵션을 사용하여 중첩된 디렉토리를 한 번에 생성할 수 있습니다. 예를 들어, docs라는 디렉토리를 생성하려면 다음과 같이 사용합니다. mkdir docs docs 디렉토리가.. 더보기

728x90
반응형