chkconfig 썸네일형 리스트형 Monitoring Tools - 리눅스 Zabbix Agent 자동 실행 설정 | chkconfig & systemd 서비스 등록 Zabbix Agent를 binary 파일로 설치하는 경우 부팅 시 자동으로 실행되도록 서비스 등록을 해줘야 합니다.binary 파일로 설치하면 기본적으로 /etc, /usr 안에 파일들이 들어있습니다. chkconfig를 사용한 서비스 관리1. 서비스 스크립트 작성# vi /etc/init.d/zabbix-agentZabbix-agent.service 파일 생성 #!/bin/bash# Author SAMSO YEAH# Zabbix agent# chkconfig: 2345 37 63# description: zabbix. /etc/rc.d/init.d/functionsstart() { /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf .. 더보기 Linux - 서비스관리 명령어 (systemctl / service / chkconfig) CentOS6 이전 버전의 리눅스는 /etc/rc.d/init.d/ 디렉토리에 서비스 관리 스크립트가 있었습니다.CentOS7 부터는 서비스 관리를 systemd에서 하게 되며 systemctl 명령어를 통해 각 서비스들을 제어하게 됩니다.명령servicesystemctl비고시작service 서비스명 startsystemctl start 서비스명.servicesystemctl의 경우.service 생략 가능종료service 서비스명 stopsystemctl stop 서비스명.service재시작service 서비스명 restartsystemctl restart 서비스명.service설정 값 다시 읽기service 서비스명 reloadsystemctl reload 서비스명.service서비스 상태 확인ser.. 더보기 이전 1 다음