리눅스

systemctl 관리-목록-등록-삭제

초이짬 2022. 7. 18. 14:14
728x90

systemctl 은 centos 도 쓰지만 ubuntu 도 사용한다. 

 

일단 목록 확인은 

 

systemctl list-units --type=service --all

 

--all 옵션 생략시 기동되지 않는 프로세스는 안보인다.

 

삭제는 

systemctl disable [프로세스명]

.service는 생략하고 쓴다.

등록은

systemctl enable [프로세스명]

 

불필요 서비스 삭제

systemctl reset-failed

이건 안써봐서 모름

 

 

 

 

 

728x90