728x90

systemd 4

[RHEL] firewalld 동적 방화벽 데몬

부제: 존 기반 규칙을 관리하는 RHEL의 방화벽 서비스 본체systemctl enable --now firewalld # 데몬 활성화 + 부팅 시 자동 시작systemctl status firewalld # 데몬 상태 확인firewall-cmd --state # 방화벽 자체 동작 여부● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; preset: enabled) Active: active (running) since Thu 2026-07-16 23:06..

명령어/Linux 2026.07.18

[RHEL] chkconfig 레거시 SysV 서비스 관리

부제: systemd 이전 SysV init 스크립트의 부팅 활성화를 관리하던 명령chkconfig --list # SysV 서비스의 런레벨별 on/off 나열chkconfig --add myservice # SysV 스크립트를 관리 대상에 등록chkconfig myservice on # 부팅 시 자동 시작 설정(레거시)$ chkconfig --listNote: This output shows SysV services only and does not include native systemd services. If you want to list systemd services use 'systemctl list-unit-files'.$ chkconfig --hel..

명령어/Linux 2026.07.18

[리눅스] journalctl 시스템 로그 서비스 로그 확인

부제: systemd가 모은 로그를 서비스·시간·우선순위로 골라 보기journalctl -u nginx # 특정 서비스 로그journalctl -f # 실시간 따라가기journalctl -n 100 # 최근 100줄$ journalctl -u cron -n 2Jul 12 10:47:01 host CRON[780076]: session opened for user rootJul 12 10:47:01 host CRON[780076]: session closed for user rootjournalctl은 systemd 저널에 쌓인 로그를 본다. -u로 특정 서비스만,-f로 실시간, -p로 우선순위(에러 등)만 거른다.서비스가 왜 안 뜨는지 볼 때 systemctl stat..

명령어/Linux 2026.07.12

[리눅스] systemctl 서비스 시작 중지 상태 확인

부제: 서비스(데몬)를 켜고 끄고, 부팅 자동 시작을 관리하기systemctl status nginx # 상태 확인sudo systemctl restart nginx # 재시작sudo systemctl enable nginx # 부팅 시 자동 시작$ systemctl status cron● cron.service - Regular background program processing daemon Loaded: loaded (...; enabled; preset: enabled) Active: active (running) since Sat 2026-07-04 09:10:37 UTCsystemctl은 systemd 서비스를 다룬다. start·stop·restart로 켜고..

명령어/Linux 2026.07.12
728x90