[ubuntu] 서비스 리스트 표시하기

출처

우분투 18.04 에서 서비스 관리를 위한 systemctl 명령어 사용방법
개요 우분투에서 서비스를 관리하기 위한 systemctl 명령어 사용 방법을 알아보도록 하겠습니다. 서비스 리스트 표시하기 현재 실행중인 서비스 리스트 표시 root@localhost:~# systemctl -t service 모든 서비스..

현재 실행중인 서비스 리스트 표시

root@localhost:~# systemctl -t service

모든 서비스 리스트 표시하기

root@localhost:~# systemctl -t service --all

시스템 부팅시 서비스의 자동 실행 여부 리스트 표시

root@localhost:~# systemctl list-unit-files -t service

서비스 정지

ufw 서비스를 예로 표시합니다.

서비스 이름 뒤에 붙는 `.service`는 생략 가능합니다.

root@localhost:~# systemctl stop ufw

시스템 부팅시 자동 실행 설정 및 해제

# 자동실행 설정
root@localhost:~# systemctl enable ufw

# 자동실행 해제
root@localhost:~# systemctl disable ufw

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com