IT 이야기/Linux
[RHEL7] 서비스 시작과 중지(systemctl start/stop)
찬찬이 아빠
2019. 12. 6. 15:12
반응형
RHEL7에서 서비스의 시작과 중지는 다음과 같은 명령을 이용합니다.
httpd 서비스를 예시로 들겠습니다.
1. 서비스 상태 확인
# systemctl status httpd.service
2. 서비스 시작
# systemctl start httpd.service
3. 서비스 종료
# systemctl stop httpd.service
4. 서비스 재시작
# systemctl restart httpd.service
# systemctl reload httpd.service
# systemctl reload-or-restart httpd.service
5. 서비스 활성화
# systemctl enable httpd.service
6. 서비스 비활성화
# systemctl disable httpd.service
반응형