• systemd与systemV


    • 各服务预设产生数据目录:/var/lib/*
    • 各服务进程pid记录文件目录:/var/run/
    • 服务与端口对应参考设定文件:/etc/services
    • daemon初始化环境设定文件目录:/etc/sysconfig/| /etc/sysconfig/network-scripts/

    systemd

    • 系统首支程式:systemd
    • 服务设定位置:
      • /usr/lib/systemd/system/
      • /run/systemd/system/
      • /etc/systemd/system/(一般为连接文件)
    • 服务统一管理:systemd
    • service设定文件:
      • /usr/lib/systemd/system/*.service: 预设设定文件
      • /etc/systemd/system/system/*.service.d/: 用户个性化设定文件,会被加入设定
      • /etc/systemd/system/system/*.service.wants/: 连结文件,启动该服务后推荐启动的其他服务
      • /etc/systemd/system/system/*.service.requires/: 连结文件,启动该服务之前,需要预先启动的服务

    systemV

    • 系统首支程式:init
    • 使用脚本管理:/etc/init.d/
    • 启动脚本目录:/etc/init.d/
    • super daemon管理:xinetd/inetd
    • xinetd设定文件:主要设定文件(预设值)/etc/xinetd.conf |各daemon个性化设定文件目录/etc/xinetd.d/
    • 各服务各自设定文件目录:/etc/
    • 对管理的daemon处理模式:single threaded / multi threaded
    • 管理的daemon的工作形态的类型:signal-control(使用信号通知) / interval-control(隔段时间执行)
  • 相关阅读:
    133
    132
    131
    130
    129
    128
    2019.10.16考试解题报告
    2019.10.15考试解题报告
    洛谷 P1352 没有上司的舞会
    2019.10.13考试解题报告
  • 原文地址:https://www.cnblogs.com/wanghaoxiang/p/8689898.html
Copyright © 2020-2023  润新知