본문 바로가기

전체 글379

redis 키 만료 시간 설정 하기 -방법1-> set key key1-> expire key 300 -방법2-> set key key1 ex 300 2025. 12. 6.
redis 설치하기 sudo apt-get install lsb-release curl gpgcurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpgsudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.listsudo apt-get update.. 2025. 12. 6.
redis 🧩 작성일: 20251206📘 1. 주제redis💡 2. 개념 설명-특징 -> 인메모리 데이터 베이스와 데이터 구조 저장소 -> 디스크 기반 데이터베이스보다 빠름 -> 키-값 이외의 다양한 자료구조 지원 -> 캐시(쿼리결과), 세션 스토어-> 기본 포트 6379 2025. 12. 6.
kind로 클러스터 삭제하기 2025. 12. 6.
proxy vs reverse proxy 🧩 작성일: 20251203📘 1. 주제proxy vs reverse proxy 💡 2. 개념 설명-proxy -> 클라이언트가 어떤 특정 목적지로 가고자 할때 proxy가 대신 목적지로 가준다. -> 클라이언트는 프록시와 tcp connection을 맺고 프록시서버에서 목적지로 요청을 보낸다. - 프록시 use cases -> Caching(cdn과는 다름)-> Anonymity-> Logging-> Block Sites-> Microservices-> debugging(fiddler, man in the middle 사용)-CDN은 reverse-proxy라고 한다. -sidecar container, service mesh는 proxy의 idea에 기반한다. -특정 애플리케이션.. 2025. 12. 3.
Failed to allocate directory watch: Too many open files Removing libvirt-daemon dnsmasq configuration 너무 많은 파일이 열려 있다고 한다. 위와 같은 설정 권장 ulimit -nulimit 확인 cat /proc/sys/fs/inotify/max_user_watchescat /proc/sys/fs/inotify/max_user_instancescat /proc/sys/fs/file-max시스템 전체 ulimit확인 echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.confecho "fs.inotify.max_user_instances=1024" | sudo tee -a /etc/sysctl.confecho "fs.file-max=2097152" | sudo tee -a /etc/sysctl.confsudo sysctl -p시스템 전체.. 2025. 12. 3.
ubuntu에 qemu 설치하기 docker가 설치되어 있는 관계로 virtuabox/vmware는 설치를 해도 가상머신을 실행하지 못한다. sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients virt-managersudo usermod -aG libvirt $USERsudo usermod -aG kvm $USERqemu를 설치해서 사용 2025. 12. 3.
하드웨어 및 네트워크 속도 상단 배너에서 확인하기 (ubuntu) 로컬에서 쿠버네티스를 클러스터를 구축할 예정이라램과 cpu의 상태를 확인하기 위해 도구를 설치 https://extensions.gnome.org/extension/1460/vitals/ Vitals - 그놈 쉘 확장기부 설치 A glimpse into your computer's temperature, voltage, fan speed, memory usage, processor load, system resources, network speed and storage stats. This is a one stop shop to monitor all of your vital sensors. Uses asynchronous polling to providextensions.gnome.org 2025. 12. 3.
sprintboot로 웹서버 프로젝트로 실행하기 springboot에서 mysql에 연결을 하려고 하는데 Public Key Retrieval이 허용되지 않았다는 오류가 발생 useSSL하고는 연관이 없고 allowPublicKeyRetrieval=true를 추가해 주라고 한다. 위와 같이 추가 빌드 성공 근데 애플리케이션이 db에 연결한 다음에 바로 종료가 된다. 웹서버로 실행하기 위해서 의존성을 추가 의존성 추가후 다시 빌드 애플리케이션을 실행하면은 웹서버로 실행이 된다. 브라우저로 접근시 서버에서 요청을 정상적으로 받는다. 2025. 12. 1.