데비안-시작시 MySQL 부팅 중지 개발 목적으로

개발 목적으로 컴퓨터에 MySQL이 있지만 대부분은 사용하지 않습니다. 부팅 할 때 MySQL을 시작하지 않고 (을 사용하여 service mysql start) 말할 때만 데비안을 어떻게 구성 할 수 있습니까 ?

나는 apache2와 같은 것을 사용했다.

 update-rc.d -f apache2 remove

그러나 MySQL 로이 작업을 수행 할 수있는 방법을 찾지 못했습니다.



답변

당신은 원합니다 update-rc.d mysql disable. update-rc.d 맨 페이지에 명시된 바와 같이 제거하지 않으려는 경우 :

A common system administration error is to delete the links with the
thought that this will "disable" the service, i.e., that this will pre‐
vent the service from being started. However, if all links have been
deleted then the next time the package is upgraded, the package's
postinst script will run update-rc.d again and this will reinstall
links at their factory default locations


답변

기본적으로 systemd를 사용하는 데비안 8 (Jessy)이므로 다음을 시도하십시오.

systemctl list-units | grep mysql    # check for mysql unit name
systemctl disable mysql.service      # or whatever you find at prev step


답변

update-rc.d -f mysql remove

또는:

update-rc.d mysql disable


답변