如何使mysql自动启动? (仅适用于linux-cli) [英] How make mysql start automatically ? (linux-cli only)

查看:85
本文介绍了如何使mysql自动启动? (仅适用于linux-cli)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在每次系统启动时使mysql启动?我需要在专用服务器(ubuntu发行版)中放置我的博客,但是每次服务器关闭时,启动mysql都会停止. 顺便说一句,我只能使用命令行.

How can i make mysql start every time the system boot ? I need that in a dedicated server(ubuntu distro) in which i have my blog, but every time the server goes down, on booting mysql is stopped. Btw i can use only command line.

推荐答案

您可以使用sysv-rc-conf来实现,在基于debian的基础上,您可以使用sudo apt-get install sysv-rc-conf来安装它 那么您可以通过命令行选择在启动时以恶魔名字开头的简单X开头的内容

You can do it by using sysv-rc-conf, on debian based you can install it with sudo apt-get install sysv-rc-conf then you can choose what start at boot with a simple X on the name of the deamon, all via command line

这篇关于如何使mysql自动启动? (仅适用于linux-cli)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆