zoukankan      html  css  js  c++  java
  • systemd命令和sysvinit命令对比

    systemd命令和sysvinit命令的对照信息

    sysvinit命令 systemd命令 备注
    service httpd start systemctl start httpd.service 启动httpd服务
    service httpd stop systemctl stop httpd.service 关闭httpd服务
    service httpd restart systemctl restart httpd.service 重启httpd服务,无论httpd服务当前状态
    service httpd reload systemctl reload httpd.service 重载httpd配置信息而不中断服务
    service httpd condrestart systemctl condrestart httpd.service 重启httpd服务,只当httpd启动状态动作
    service httpd status systemctl status httpd.service 查看httpd服务的运行状态
    chkconfig httpd on systemctl enable httpd.service 设置httpd服务开机启动
    chkconfig httpd off systemctl disable httpd.service 禁止httpd服务开机启动
    chkconfig httpd systemctl is-enabled httpd.service 检查httpd服务在当前环境下的状态
    chkconfig --list systemctl list-unit-files --type=service 输入在加个运行级别下所有服务的启动和禁用情况
    chkconfig httpd --list ls /etc/systemd/system/*.wants/httpd.service 查看httpd服务在各个级别下的启动和禁用情况
    chkconfig httpd --add systemctl daemon-reload 创建一个新服务文件或者变更配置时使用

    systemd 电源管理命令

    systemctl 命令 说明
    systemctl poweroff 关闭系统
    systemctl reboot 重启系统
    systemctl suspend 进入待机模式
    systemctl hibernate 进入休眠模式
    systemctl hybird-sleep 进入混合休眠模式
  • 相关阅读:
    最全的常用正则表达式大全
    服务器调用JS
    ASP-----分页功能的实现
    流操作text文件------读取、保存文档
    linq to sql 增删改查
    数据库的高级应用
    SQL---------表的约束
    面向对象--继承练习
    Winform---文件夹操作
    面向对象--里氏转换练习
  • 原文地址:https://www.cnblogs.com/amnotgcs/p/14176023.html
Copyright © 2011-2022 走看看