리눅스 썸네일형 리스트형 우분투에서 MySQL 8을 바이너리 파일로 설치하는 방법 우분투에서 MySQL 8.0.31을 바이너리 파일로 설치하는 방법테스트 환경$ lsb_release -dDescription: Ubuntu 22.04.1 LTSMySQL 설치MySQL 바이너리 파일 다운로드☞ MySQL Community Downloads- https://dev.mysql.com/downloads/mysql1. 필수 패키지 설치sudo apt-get updatesudo apt-get install -y libaio1 libncurses5 libnuma12. MySQL 사용자 및 그룹 생성** ubuntu sudo 그룹에서 group id 27번을 사용하고 있음.더보기Ubuntu 패키지 매니저를 사용하여 MySQL을 설치할 때, mysql 계정 정보$ cat /etc/passwd | gre.. 더보기 VMWARE ESXi 스토리지 datastore1 경로 VMWARE ESXi 스토리지 datastore1 경로- 경로 /vmfs/volumes/datastore1[root@localhost:~] df -h | grep datastore1VMFS-6 430.5G 212.0G 218.5G 49% /vmfs/volumes/datastore1[root@localhost:~] cd /vmfs/volumes/datastore1/Image[root@localhost:~] wget http://mirror.kakao.com/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-dvd1.isoConnecting to mirror.kakao.com (113.29.189.165:80)CentOS-8.2.2004-x86_ 100.. 더보기 도커 컨테이너에서 타임존을 설정하는 방법 도커 컨테이너에서 타임존을 설정하는 방법(timezone)현재 타임존 확인timedatectl타임존 설정(Asia/Seoul)sudo timedatectl set-timezone Asia/Seoul심볼릭 링크(/etc/localtime 파일을 직접 설정)sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtimedocker run 명령을 통한 타임존 설정컨테이너를 실행할 때 환경 변수를 사용하여 타임존을 설정할 수 있습니다.docker run -it --rm -v /usr/share/zoneinfo/Asia/Seoul:/etc/localtime:ro centos bash$ docker run -it --rm -v /usr/share/zoneinfo/Asia/Se.. 더보기 취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기 취약점을 방지하기 위한 보안 HTTP 헤더를 설정하기X-Content-Type-Options###ApacheHeader set X-Content-Type-Options nosniff###Nginxadd_header X-Content-Type-Options nosniff;X-XSS-Protection###ApacheHeader set X-XSS-Protection "1; mode=block"###Nginxadd_header X-XSS-Protection "1; mode=block";X-Frame-Options###ApacheHeader always append X-Frame-Options DENY###Nginxadd_header X-Frame-Options “DENY”;HTTP Strict Transpor.. 더보기 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; al.. 더보기 NGINX 및 PHP-FPM Access Log 포맷 설정 NGINX 및 PHP-FPM Access Log 포맷 설정nginx access log format 설정vim /etc/nginx/nginx.confhttp {... 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 - P.. 더보기 리눅스에서 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 -datesnotBefore=Aug 24 16:40:08 2020 GMTnotAfter=Nov 22 16:40:08 2020 GMTopenssl s_client -connect sangchul.kr:443 | openssl x509 -n.. 더보기 이전 1 ··· 133 134 135 136 137 138 139 ··· 196 다음