• 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 进入混合休眠模式
  • 相关阅读:
    局部组件
    flex布局
    Websocket
    关于Javascript夜里再来分析下
    go build、go mod等命令
    websocket
    FileSystemWatcher使用
    DataGridView双缓冲
    C#读INI文件
    c 通过 COM接口调用 Excel.Application 问题终于解决
  • 原文地址:https://www.cnblogs.com/amnotgcs/p/14176023.html
Copyright © 2020-2023  润新知