전체 글 썸네일형 리스트형 취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기 취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기 X-Content-Type-Options ###Apache Header set X-Content-Type-Options nosniff ###Nginx add_header X-Content-Type-Options nosniff; X-XSS-Protection ###Apache Header set X-XSS-Protection "1; mode=block" ###Nginx add_header X-XSS-Protection "1; mode=block"; X-Frame-Options ###Apache Header always append X-Frame-Options DENY ###Nginx add_header X-Frame-Options “DENY”; HTTP.. 더보기 Amazon RDS mysql(mariadb) 데이터베이스 마이그레이션 Amazon RDS mysql(mariadb) 데이터베이스 마이그레이션 [소스 데이터베이스(sdb.sangchul.kr)] 데이터베이스 접속 테스트 mysql -hsdb.sangchul.kr -umyuser -p'mypassword1!' mydata_DB $ mysql -hsdb.sangchul.kr -umyuser -p'mypassword1!' mydata_DB mysql: [Warning] Using a password on the command line interface can be insecure. Reading table information for completion of table and column names You can turn off this feature to get a quicke.. 더보기 [리눅스] NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법 NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법 nginx 설정 vim /etc/nginx/conf.d/default.conf $ vim /etc/nginx/conf.d/default.conf ... # nginx, php-fpm status location ~ ^/(status|ping)$ { fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; include fastcgi_params; allow 127.0.0.1; allow 10.11.0.0/16; allow 10.21.0.0/16; allow .. 더보기 [리눅스] NGINX 및 PHP-FPM access logs 설정 NGINX 및 PHP-FPM 액세스 로그 설정 nginx access logs format $ vim /etc/nginx/nginx.conf ... log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$remote_addr"' ' REQ_TIME: $request_time s - CONNECT_TIME: $upstream_connect_time s - PHP-FPM_STATUS: $upstream_status'; $ nginx -t nginx: the configuration file /etc/ng.. 더보기 리눅스에서 tcping을 설치하고 사용하는 방법 리눅스에서 tcping을 설치하고 사용하는 방법tcping 명령어는 TCP 포트에 대한 ping 테스트를 수행하는 데 사용됩니다. 이 도구는 목표 호스트와 포트에 대한 연결을 시도하고 응답 시간을 측정합니다. 일반적으로 ping 명령어가 ICMP를 사용하여 호스트의 응답을 확인하는 데 사용되지만 tcping은 TCP 연결을 테스트하는 데 사용됩니다.tcping 설치RedHat(CentOS) 기반 리눅스sudo yum install -y tcpingDebian(Ubuntu) 기반 리눅스sudo apt-get install -y tcpingSnap 패키지를 사용하여 tcping을 설치snap install tcping$ snap install tcpingtcping 0.0.80 from Aibulat ins.. 더보기 openssl 인증서 만료일 조회 openssl 인증서 만료일 조회 sangchul.kr SSL 인증서 만료일 조회 echo | openssl s_client -servername sangchul.kr -connect sangchul.kr:443 2>/dev/null | openssl x509 -noout -dates $ echo | openssl s_client -servername sangchul.kr -connect sangchul.kr:443 2>/dev/null | openssl x509 -noout -dates notBefore=Aug 24 16:40:08 2020 GMT notAfter=Nov 22 16:40:08 2020 GMT openssl s_client -connect sangchul.kr:443 | openssl x.. 더보기 리눅스 ccze 명령어 ccze 명령어 EPEL 저장소 설치 yum install epel-release ccze 패키지 설치 yum install -y ccze ccze 옵션 설명 -A, --plugin: 설명: 지원되는 출력 포맷 중 하나를 선택합니다. 예시: ccze -A ansi -h, --html: 설명: HTML 형식으로 로그를 변환합니다. 예시: ccze -h logfile.txt > output.html -l, --log-file: 설명: 로그 파일의 경로를 지정합니다. 예시: ccze -l /var/log/syslog -r, --raw-logfile: 설명: 로그 파일을 원시 형식으로 처리하여 변환합니다. 예시: ccze -r logfile.txt -o, --output-file: 설명: 출력 결과를 파일로 저.. 더보기 [리눅스] ping 명령어 ping 명령어 ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze yum install -y ccze ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze -A $ ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze -A 2020-10-13 17:38:02 PING google.com (172.217.24.142) 56(84) bytes of data. 2020-10-13 17:38:02 64 bytes from nrt20s01-in-f14.1e100.net (172.21.. 더보기 이전 1 ··· 189 190 191 192 193 194 195 ··· 287 다음