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 程序名

            积极竞争
        不惧失败
    学习提升
  • 相关阅读:
    A*算法实现 八数码问题
    poj 1077 Eight(bfs,dbfs, A*)
    poj 1729 Jack and Jill (搜索,bfs)
    poj 4105 拯救公主(bfs)
    poj4091The Closest M Points(KD-tree)
    资源整理
    推荐 VS2010入门教程—鸡啄米
    Cstring的使用
    VC 中TEXT、_T、L的区别
    电脑内存和CPU的关系
  • 原文地址:https://www.cnblogs.com/acmez/p/13622004.html
Copyright © 2011-2022 走看看