Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
47
rated 0 times [  47] [ 0]  / answers: 1 / hits: 60973  / 1 Year ago, thu, february 2, 2023, 2:07:39

Is there a way to make apache and mysql not run automatically on startup?



Currently, whenever I boot my machine, they start automatically and run in the background.



I am using Ubuntu 12.04.


More From » 12.04

 Answers
4

Apache



sudo update-rc.d -f apache2 disable


Apache is still using rc.d init script, which is why you must disable it using update-rc.d.



MySQL



echo manual | sudo tee /etc/init/mysql.override


MySQL on the other hand has converted to an upstart configuration file. The recommended way of disabling upstart services is to use an override file.


[#38342] Thursday, February 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmodmi

Total Points: 390
Total Questions: 122
Total Answers: 111

Location: Venezuela
Member since Mon, Oct 18, 2021
3 Years ago
;