In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "Linux how to prohibit MySQL from booting", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Linux how to prohibit MySQL boot self-boot" bar!
Some users have reported that their Linux system has started automatically every time it is booted since the MySQL database has been installed, which is very annoying. Is there any way to prohibit it? Friends who want to know, just keep looking down!
Upstart is compatible with the configuration of System V, but the main service configuration is under / etc/init, which is why you modify / etc/rc$ {runlevel} .d / (Ubuntu starts runlevel2 by default The MySQL startup configuration under / etc/rc2.d/) does not really prevent MySQL from booting (for example, using the command sudo update-rc.d-f openarena-server remove, or using other management tools such as bum, etc.)-if MySQL is installed through apt, its startup configuration file is written to / etc/init.
I forgot if there is a startup entry for mySQL under / etc/rc2.d/, and if so, because Ubuntu is compatible with System V, I also need to cancel its automatic startup:
Sudo update-rc.d-f openarena-server remove
Either use tools such as bum, or directly change the S of the mysql configuration file name under / etc/rc$ {runlevel} .d / to K.
In addition, we need to edit the mysql.conf file under / etc/init/ and find the following lines:
Start on (net-device-up
And local-filesystems
And runlevel [2345])
Stop on runlevel [016]
Change runlevel [2345] to runlevel [345] (if you use Ubuntu, start runlevel2 by default), or directly change to runlevel [! 0123456], you can avoid the automatic boot of MySQL.
At this point, I believe that everyone on the "Linux how to prohibit MySQL boot self-boot" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.