반응형
CentOS 7 부터 서비스 데몬 관리 방법이 달라졌습니다. 기존의 init system 에서 systemd 로 기본 시스템 관리 데몬이 변경되었기 때문입니다.
1. 서비스 재실행(sshd 의 경우)
systemctl restart sshd.service
2. 서비스 중지(sshd 의 경우)
systemctl stop sshd.service
3. 서비스 시작(sshd 의 경우)
systemctl start sshd.service
4. 서비스 상태보기(sshd 의 경우)
systemctl status sshd.service
5. 부팅시 서비스 시작하기(sshd 의 경우)
systemctl enable sshd.service
6. 부팅시 서비스 시작하지 않음(sshd 의 경우)
systemctl disable sshd.service
7. 부팅시 실행되는 서비스인지 검사(sshd의 경우)
systemctl is-enabled sshd
8. 서비스 목록보기
systemctl list-unit-files --type=service
출처: http://saksin.tistory.com/1281 [삭신만세]
'OS > Linux' 카테고리의 다른 글
grep 명령어 사용 (0) | 2018.02.14 |
---|---|
리눅스,윈도우에서 인터넷 속도 테스트. (0) | 2018.02.06 |
CentOS7 minidlna 설치 (0) | 2018.02.05 |
Centos 방화벽 설정 (0) | 2018.02.05 |
CentOS7 owncloud 스캔 (0) | 2018.02.05 |