sudo systemctl start <서비스명> |
서비스 시작 |
sudo systemctl start nginx |
sudo systemctl stop <서비스명> |
서비스 중지 |
sudo systemctl stop nginx |
sudo systemctl restart <서비스명> |
서비스 재시작 |
sudo systemctl restart nginx |
sudo systemctl reload <서비스명> |
서비스 설정 재적용 (재시작 없이) |
sudo systemctl reload nginx |
sudo systemctl status <서비스명> |
서비스 상태 및 최근 로그 확인 |
sudo systemctl status nginx |
sudo systemctl enable <서비스명> |
부팅 시 자동 시작 설정 |
sudo systemctl enable nginx |
sudo systemctl disable <서비스명> |
부팅 시 자동 시작 해제 |
sudo systemctl disable nginx |
sudo systemctl is-active <서비스명> |
서비스 활성화 여부 확인 |
sudo systemctl is-active nginx |
sudo systemctl list-units --type=service |
실행 중인 서비스 목록 확인 |
sudo systemctl list-units --type=service |