zoukankan      html  css  js  c++  java
  • systemctl命令用法详解

    systemctl命令用法详解
    系统环境:Fedora 16
    binpath:/bin/systemctl
    package:systemd-units

    systemctl enable httpd.service 
    将httpd服务设为开机自动启动

    systemctl disable httpd.service
    禁止httpd服务开机自动启动

    systemctl status httpd.service 
    查看httpd服务的运行状态

    //Loaded行中的enabled表示该服务是开机自动启动的,disable表示该服务不是开机自动启动的

    systemctl is-active httpd.service
    检查httpd服务是否处于活动状态

    systemctl start httpd.service
    启动httpd服务

    systemctl stop httpd.service
    停止httpd服务

    systemctl restart httpd.service 
    重新启动httpd服务

  • 相关阅读:
    python练习--1、简易登录接口
    python--1、入门
    mysql数据库安装
    第八章总结
    第七章总结
    第三周总结
    第二周总结
    if、switch语句
    2章总结
    1月14日总结
  • 原文地址:https://www.cnblogs.com/klxll/p/3226981.html
Copyright © 2011-2022 走看看