방법
- 프로세스로 확인
- 시스템 서비스 데몬으로 확인
1. 프로세스에서 서비스 확인
# 프로세스 구조 출력 명령어
pstree
# 혹은 실행 중인 프로세스 모두 출력 명령어
ps -ef
2. 시스템 서비스 데몬으로 등록된 서비스 리스트 확인 (systemctl, service)
systemctl list-units --type service
# 활성화/비활성화 서비스 모두 조회
systemctl list-units --type service --all
systemctl list-unit-files --type service
systemctl list-unit-files --type service --all
# 구 버전의 리눅스의 경우 service 사용 (sysvinit)
# + 실행 중 / - 실행 안됨 / ? 실행 확인 불가
service --status-all
실행 예시
$ systemctl list-units --type service UNIT LOAD ACTIVE SUB DESCRIPTION abrt-ccpp.service loaded active exited Install ABRT coredump hook abrt-oops.service loaded active running ABRT kernel log watcher abrt-vmcore.service loaded active exited Harvest vmcores for ABRT abrt-xorg.service loaded active running ABRT Xorg log watcher abrtd.service loaded active running ABRT Automated Bug Reporting Tool ... systemd-vconsole-setup.service loaded active exited Setup Virtual Console tog-pegasus.service loaded active running OpenPegasus CIM Server LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 46 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'
$ systemctl list-unit-files --type service UNIT FILE STATE abrt-ccpp.service enabled abrt-oops.service enabled abrt-vmcore.service enabled abrt-xorg.service enabled abrtd.service enabled ... wpa_supplicant.service disabled ypbind.service disabled 208 unit files listed.
참고
CentOS doc - guide
https://docs.centos.org/en-US/centos/install-guide/nextsteps/
Redhat 7 Administrator's Guide (systemd)
'OS > Centos(redhat)' 카테고리의 다른 글
[CentOS] vim 세팅 (options) (0) | 2024.02.19 |
---|---|
[CentOS] chage 명령어 (패스워드 사용 만기 관리) (2) | 2024.02.18 |
[CentOS] systemd 서비스 등록 (0) | 2024.02.17 |
[CentOS] CentOS8 yum Cannot preprare internal mirrorlist (0) | 2024.02.16 |
[CentOS] 모든 유저 크론탭 확인 방법 (0) | 2024.01.17 |