"리눅스 systemctl"의 두 판 사이의 차이

61번째 줄: 61번째 줄:


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[systemctl cat]]
* [[systemctl cat]]
* [[리눅스 service]]
* [[리눅스 service]]
66번째 줄: 67번째 줄:
* [[CentOS chkconfig]]
* [[CentOS chkconfig]]
* [[systemctl list-units]]
* [[systemctl list-units]]
}}


[[분류: CentOS 7]]
[[분류: CentOS 7]]
[[분류: /usr/bin]]
[[분류: /usr/bin]]
[[분류: systemctl]]
[[분류: systemctl]]

2023년 6월 9일 (금) 22:08 판

1 개요

리눅스 systemctl
/usr/bin/systemctl
목록 systemctl list-units
시작 systemctl start 서비스
정지 systemctl stop 서비스
재시작 systemctl restart 서비스
리로드 systemctl reload 서비스
상태보기 systemctl status 서비스
활성화확인 systemctl is-enabled 서비스
활성화 systemctl enable 서비스
비활성화 systemctl disable 서비스
마스크 systemctl mask 서비스
언마스크 systemctl unmask 서비스

2 실행예시

  • 기본 명령어는 list-units
root@runbox4:~# systemctl list-units | cat
  UNIT                                                                                      LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device                               loaded active plugged   Virtio network device
  sys-devices-pci0000:00-0000:00:04.0-virtio1-block-vda-vda1.device                         loaded active plugged   /sys/devices/pci0000:00/0000:00:04.0/virtio1/block/vda/vda1
...
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
221 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
root@runbox4:~# systemctl | cat
  UNIT                                                                                      LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device                               loaded active plugged   Virtio network device
  sys-devices-pci0000:00-0000:00:04.0-virtio1-block-vda-vda1.device                         loaded active plugged   /sys/devices/pci0000:00/0000:00:04.0/virtio1/block/vda/vda1
...
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
221 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}