Home  >  Article  >  Database  >  在CentOS设置MariaDB的开机自启动

在CentOS设置MariaDB的开机自启动

WBOY
WBOYOriginal
2016-06-07 15:28:561569browse

在CentOS设置MariaDB的开机自启动 作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs 1、检查MySQL是否在可管理列表中 [root@Cloud-Q2 ~]# chkconfig --list abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off 2、如果mysqld没有在列表,那

在CentOS设置MariaDB的开机自启动

作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs

1、检查MySQL是否在可管理列表中

[root@Cloud-Q2 ~]# chkconfig --list

abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off

2、如果mysqld没有在列表,那么用命令添加它:

# chkconfig add mysqld
我们可以看到,mysqld本来就在列表中,所以这一步我们跳过。

3、使用命令设置开机启动:

# chkconfig add mysqld

我们再次检查列表,发现结果是这样的:

表示MariaDB的开机自动启动已经设置完成。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:MongoDB自学笔记下载Next article:初识Redis邂逅