每当我启动时,当我输入systemctl status mysql.service时,我都会看到MySQL正在运行。我想在需要的时候手动激活MySQL。每次我不需要服务时,我都忘了关掉。我怎样才能得到我想要的设置?
发布于 2020-07-10 20:26:46
若要在计算机启动时阻止MySQL启动,您可以分两个步骤禁用它:
发布于 2020-07-10 20:27:59
systemctl disable mysql.service在引导时禁用服务。
需要时输入systemctl start mysql.service,并输入systemctl stop mysql.service以停止。
https://askubuntu.com/questions/1258020
复制相似问题