OS(54)
-
Ubunbu syslog에 로그 찍기
logger "🔥 TEST LOG FROM SYSLOG $(date)"# 확인tail -f /var/log/syslog
2025.04.05 -
Ubuntu 먹통될때 조치
NTP: DNS Resolution Failing 에러ntpd[1259]: error resolving pool x.ubuntu.pool.ntp.org: Temporary failure in name resolution조치# DNS 셋팅sudo vi /etc/resolv.conf------------------------------------------nameserver {dns IP}sudo systemctl restart systemd-resolvedsudo systemctl status systemd-resolved# NTP 확인ntpq -p
2025.04.02 -
Ubuntu 먹통되는 문제 조치
문제점ssh 연결 안됨모니터 연결시, 화면 연결 안됨원인 파악# what went wrong before a reboot. 확인journalctl -b -1 -p err..alert > ~/previous-boot-errors.logjournalctl -b -1 -p warning > ~/previous-boot-warnings.log# hardware and boot issues 확인sudo dmesg > ~/dmesg.logGraphics Stack Crash (HDMI blank) 조치 # 문제gnome-session: Unrecoverable failure in required component org.gnome.Shell.desktop Failed to setup: No GPUs with ou..
2025.03.30 -
pid로 실행 및 종료하는 스크립트 만들기
실행#!/bin/bash# Run your application in the background and save the PIDyour_app_command &# Save the PID to a fileecho $! > app.pidecho "Application started with PID $(cat app.pid)"종료#!/bin/bash# Check if the pid file existsif [ -f app.pid ]; then PID=$(cat app.pid) # Kill the process kill $PID # Optionally remove the pid file rm app.pid echo "Application with PID $PID stopped."e..
2025.03.27 -
Ubuntu dns cache 삭제
# systemed-resolved 상태 확인systemctl is-active systemd-resolved# active이면, 서비스 재기동sudo systemctl restart systemd-resolved
2025.03.21 -
Ubuntu dns 설정
# 환경설정sudo vi /etc/systemd/resolved.conf-------------------------------[Resolve]DNS={dns ip}FallbackDNS=8.8.8.8-------------------------------# 적용sudo systemctl restart systemd-resolved
2025.03.04