美文网首页
systemctl 命令

systemctl 命令

作者: no才 | 来源:发表于2016-05-21 11:55 被阅读0次

在上篇SentOS yum安装MariaDB我们提到Mariadb数据库:

操作Mariadb
1.启动MariaDB:systemctl start mariadb
2.停止MariaDB:systemctl stop mariadb
3.重启MariaDB:systemctl restart mariadb
4.设置开机启动:systemctl enable mariadb

此处出现了systemctl命令。度之。

使用linux的同学对service和chkconfig两个命令都不陌生,其重要性不言而喻,那么怎么会突然冒出个systemctl命令呢?其实,为了简化操作,systemctl命令将service和chkconfig命令结合在了一起。这样通过一个命令就可以实现两个命令的功能。—— 百度经验

  1. systemctl命令的基本操作格式
systemctl   动作   服务名.service

使用systemctl命令,要记住start,stop,restart,status,enable,disable,is-enabled。就可以很好的使用!

相关文章

  • linux命令:systemctl

    CentOS 7.x开始,CentOS开始使用systemctl命令代替service命令 *systemctl ...

  • systemctl管理服务---RHEL7系统

    systemctl管理服务(RHEL 7系统) 命令 systemctl enable 服务名称 命令:将服务加到...

  • CentOS 7下启动、关闭、重启、查看MySQL服务

    1.启动命令 systemctl start mysqld.service 2.关闭命令 systemctl s...

  • Systemctl 命令

    CentOS 7 开始 使用systemd来管理服务进程了 systemd是代替 init 作为父进程(PID=1...

  • systemctl命令

    来自:http://man.linuxde.net/systemctl systemctl 命令是系统服务管理器指...

  • systemctl命令

    systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一...

  • systemctl 命令

    在上篇SentOS yum安装MariaDB我们提到Mariadb数据库: 操作Mariadb1.启动MariaD...

  • Systemctl命令

    01、首先检查系统上是否安装了systemd以及当前安装的Systemd的版本是什么? 02.检查systemd和...

  • systemctl命令

    参考原文:http://www.ruanyifeng.com/blog/2016/03/systemd-tutor...

  • 优化Linux开机启动时间

    相关命令 systemd-analyze systemctl 查看开机启动项 命令1:systemctl list...

网友评论

      本文标题:systemctl 命令

      本文链接:https://www.haomeiwen.com/subject/gitorttx.html