美文网首页
linux的服务管理

linux的服务管理

作者: 小胖_20c7 | 来源:发表于2019-04-28 16:40 被阅读0次
启动进程对比:
开机的自动启动
    init
    systemd
运行过程中的手动启动
    service
    systemctl
修改和查看开始的自动启动项
    chkconfig
    systemctl
启动脚本:
    /etc/init.d
    /usr/lib/systemd/system
启动级别:
    /etc/rc3.d
    /etc/systemd/system
默认运行级别:
    /etc/inittab
    /etc/systemd/system/default.target
切换级别:
    init 3
    systemctl isolate multi-user.target
systemctl管理
runlevel
init 0(systemctl poweroff)
init 6(systemctl reboot)
init 3(systemctl isolate multi-user.target)

systemctl get-default
systemctl set-default multi-user.target

systemctl enable httpd.service
systemctl disable httpd.service

systemctl start httpd.service
systemctl stop httpd.service
systemctl restart httpd.service

systemctl is-active httpd.service
systemctl is-enabled httpd.service
systemctl status httpd.service

systemctl list-units(针对的是汇总的服务)
systemctl list-unit-files | grep enabled(针对的是涉及到的所有文件)
systemctl list-unit-files --type=service | grep enabled(type为service,socket,target)

systemctl cat sshd.service
systemctl list-dependencies default.target

相关文章

  • Linux服务管理

    Linux服务管理 Linux中服务主要包括rpm包安装服务管理和源码包安装服务管理rpm会安装到服务编写者指定的...

  • SSH服务的搭建

    管理服务 1、什么是SSH? SSH基础服务,SSH是远程连接Linux,管理Linux的服务。Secure Sh...

  • 04-22 day 37 ssh服务

    ssh服务介绍 古老基础服务,SSH是远程连接Linux,管理Linux的服务。Secure Shell Prot...

  • 2017 08-28 启动和内核管理

    CentOS 5和6的启动流程 服务管理 Grub管理 一.Linux组成 (1)Linux: kernel+...

  • linux运维之SSH服务

    1.ssh服务介绍 1.1 基本介绍 古老基础服务,ssh是远程连接linux,管理linux的服务 Secure...

  • linux的服务管理

    启动进程对比: systemctl管理

  • Linux 服务管理

    视频教程:Linux服务管理 一、系统运行级别 查看运行级别命令 runlevel修改运行级别命令 init +[...

  • Linux服务管理

    服务简介与分类 服务的分类 linux服务分了两个大类:RPM包默认安装的服务,源码包安装的服务。RPM包默认安装...

  • Linux服务管理

    一、简介与分类 1.系统的运行级别 1)运行级别 0:关机1:单用户模式,可以想象为windows的安全模式,主要...

  • Linux服务管理

    服务(service)本质就是进程,但是是运行在后台的,通常都会监听某个端口,等待其他程序的请求,比如mysql,...

网友评论

      本文标题:linux的服务管理

      本文链接:https://www.haomeiwen.com/subject/uucjnqtx.html