Search
Duplicate

리눅스 서비스 확인 및 등록하기

centos 6 이하

chkconfig --level 123456 postfix off # CLI # runlevel : 현재 리눅스의 부팅 레벨 체크 # chkconfig --list : 현재 리눅스의 서비스 on/ off 상태 확인 # chkconfig --level 123456 postfix off : 특정 부팅 레벨의 서비스 off # GUI # ntsysv : 서비스 on/off 리스트 확인 # 방향키로 해당 서비스 이동 후 on /off 설정 "Space bar"로 변경 # Tab 키로 확인으로 이동 후 Enter # 일시적으로 서비스 종료 service postfix stop
Bash
복사

centos 7 이상

systemctl disable '서비스이름' systemctl list-unit-files | grep post postfix.service enabled systemctl disable postfix.service Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service. systemctl list-unit-files | grep post postfix.service disabled
Bash
복사