systemctl 启动服务管理机制
    1.systemctl将过去的执行脚本称为一个unit(单元) 每个单位按功能来区分有不同的类型 .socker 数据交换的服务 .target执行环境
    2.配置文件 /usr/lib/systemd/system/ 每个服务最主要的启动脚本设置
    /etc/systemd/system/ 管理员管理主机一般使用这个文件一般修改的是这个文件 于上一个文件有软连
    3。管理单一服务 systemctl 命令 unit
    reload 立刻重新启动后边的unit 后边啥都不加是重新加载systemctl 配置文件
    disable 后边的unit不会自启动 enable 反之
    mask 强迫注销服务 unmask 取消注销
    4.查看系统上所有的服务 systemctl 【command 】 [-type=type ] —all
    list-units list-unit-files 显示目前启动的unit/列出所有的还有说明
    例子 sys list-units —type=services -all | grep cups
    5,管理不同的操作环境 只需要查找 -type=target 的就行
    graphical.target 这个是命令行加上图形界面 multi-user.target 这个就是命令行
    systemctl [command ] [unit.target]
    get-default 获取当前的target 环境 set-default 设置后边的target 为默认的环境
    isolate 切换到后边的target
    例子: 在不reboot 的情况下 将操作环境转换为命令行
    systemctl isolate mulit.user………. 其它同理
    5.分析个服务之间的依赖性
    systemctl list-dependencies target 这个是看我需要谁
    —reverse (这个是反向选择就是看谁需要我的服务)
    6.终端能使用的tty端口跟 getty 有关
    7.自己做自己需要的服务参考P585
    练习题 创建第二个ssh 服务 P592