전체 글(582)
-
pgAdmin4 PostGIS PL/Python 설치
1. pgAdmin4 설치 # 1. 필요한 패키지 설치sudo apt-get install curl ca-certificates gnupg# 2. pgAdmin4 공개 키 가져오기curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add -# 3. 저장소 등록sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list'# 4. 패키지 목록 업데이트 및 설치sudo apt updatesudo apt-get install p..
20:40:25 -
dbeaver ssh mDNS 로 연결 postgres config
network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: no addresses: - 192.168.0.50/24 gateway4: 192.168.0.1 nameservers: addresses: [8.8.8.8, 1.1.1.1] pg_hba.conf가 외부 IP 허용하고 있는지sudo nano /etc/postgresql/*/main/pg_hba.confhost all all 0.0.0.0/0 md5없다면 추가 후 저장하고 PostgreSQL 재시작:sudo systemctl restart pos..
2025.06.28 -
mysql 비밀번호 정책 레벨 낮추기 rocky linux
MySQL 임시 비밀번호 확인/var/log/mysqld.log에서 임시 비밀번호(temporary password)를 확인 ALTER USER 'root'@'localhost' IDENTIFIED BY 'StrongPassw0rd!';FLUSH PRIVILEGES;SET GLOBAL validate_password.policy = LOW;ALTER USER 'root'@'localhost' IDENTIFIED BY '1234';FLUSH PRIVILEGES;
2025.06.23 -
CISCO link aggregation
초기 상태Gi0/2, Gi0/3 모두 EtherChannel Group 1 (Po1)에 묶여 있고 활성화된 상태Port state = Up Mstr In-Bndl → 정상적으로 번들(In-Bundle) 되어 있음두 포트 모두 Po1에 포함되어 트래픽 분산에 기여 Gi0/2 포트 Shutdown 이후Gi0/2는 Down / Not-in-Bndl 상태로 전환됨즉, EtherChannel 번들에서 빠져나가고 트래픽 전달에 더 이상 참여하지 않음Port-channel = null → 포트가 현재 어떤 포트채널에도 묶여있지 않음을 의미반면, Gi0/3은 여전히 Up / In-Bndl 상태 유지
2025.06.16 -
PostgreSQL의 shared_buffers
PostgreSQL의 shared_buffersshared_buffers는 PostgreSQL이 운영체제 메모리(RAM)에서 자체적으로 사용하는 캐시 영역이다. 이 설정값은 PostgreSQL 내부에서 데이터를 캐시하여 디스크 I/O를 줄이고 성능을 높이는 역할을 한다.하지만 PostgreSQL은 운영체제(OS)의 파일 시스템 캐시(페이지 캐시)를 신뢰하는 설계로 되어 있어, 다른 DBMS에 비해 shared_buffers 설정이 상대적으로 작게 설정되는 것이 일반적이다.25%와 75%PostgreSQL에서는 shared_buffers를 전체 시스템 메모리의 25% 정도로 설정하는 것이 일반적인 권장사항이다.예: 시스템 메모리 16GB → shared_buffers = 4GB나머지 75%는 OS의 페이지..
2025.06.01 -
Postmaster , Backend , Background 프로세스
✅ 1.1 Postmaster 프로세스Postmaster 프로세스는 PostgreSQL 인스턴스가 기동될 때 가장 먼저 시작되는 핵심 프로세스이다. 백그라운드 프로세스 및 Backend 프로세스 생성클라이언트 접속 대기클라이언트가 접속 요청 시 → Backend 프로세스 생성연결이 끊길 때까지 Backend 프로세스는 유지됨▶ 관련 프로세스 예 postgres 921 1 0 5320 01:47:18 /usr/lib/postgresql/14/bin/postgres -D /var/lib/postgresql/14/main -c config_file=/etc/postgresql/14/main/postgresql.confpostgres 1022 921 0 5월20 00:02:25 postgres:..
2025.06.01