메타모니
접속 : 4745   Lv. 57

Category

Profile

Counter

  • 오늘 : 3 명
  • 전체 : 115205 명
  • Mypi Ver. 0.3.1 β
[서버] Fedora | systemctl 사용법 요약 (0) 2015/08/02 AM 05:39
Fedora는 서비스 관리를 systemctl이라는 명령어로 합니다. systemctl 명령어의 주요 사용법을 정리합니다.

서비스 상태 확인 하기

systemctl status service_name.service
예를 들어 httpd의 상태를 확인하려면 다음과 같이 명령합니다.

systemctl status httpd.service
서비스 시작, 중지, 재시작 하기

서비스 시작은 다음과 같이 명령합니다.

systemctl start service_name.service
중지할 때에는 start 대신 stop, 재시작할 때에는 restart를 씁니다.

예를 들어 httpd를 시작, 중지, 재시작 명령은 다음과 같이 합니다.

systemctl start httpd.service
systemctl stop httpd.service
?systemctl restart httpd.service
부팅 시 자동 실행 하기

systemctl enable service_name.service
예를 들어 httpd를 부팅 시 자동 실행되게 하려면 다음과 같이 명령합니다.

systemctl enable httpd.service
자동 실행 되지 않게 하려면 enable 대신 disable을 쓰면 됩니다.

실행 중인 서비스 보기

실행 중인 모든 서비스 목록을 보려면 다음과 같이 명령합니다.

systemctl list-units --type=service

신고

 
X