zoukankan      html  css  js  c++  java
  • Linux命令记录-服务相关(二)

    1.设置开机自启的服务
    systemctl enable xxxx

    2.启动服务
    systemctl start xxxx/ service xxxx start

    3.关闭服务
    systemctl stop xxxx/ service xxxx stop

    4.重启服务
    systemctl restart xxxx/ service xxxx restart

    5.重载服务
    systemctl reload xxxx/ service xxxx reload

    6.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体:
    启动一个服务:systemctl start firewalld.service
    关闭一个服务:systemctl stop firewalld.service
    重启一个服务:systemctl restart firewalld.service
    显示一个服务的状态:systemctl status firewalld.service
    在开机时启用一个服务:systemctl enable firewalld.service
    在开机时禁用一个服务:systemctl disable firewalld.service
    查看服务是否开机启动:systemctl is-enabled firewalld.service
    查看已启动的服务列表:systemctl list-unit-files|grep enabled
    查看启动失败的服务列表:systemctl --failed
    查看服务运行状态: ps -ef | grep 程序名

            积极竞争
        不惧失败
    学习提升
  • 相关阅读:
    C#面向对象 类的继承
    C#面向对象 类的封装
    C#面向对象 类
    C#面向对象 1
    盒子模型、网页自动居中、float浮动与清除、横向两列布局
    HTML格式与布局
    HTML表单 CSS样式
    HTML—标签与表格 、框架
    触发器,视图
    while 循环,存储过程
  • 原文地址:https://www.cnblogs.com/acmez/p/13622004.html
Copyright © 2011-2022 走看看