摘要: 一,默认自启动服务和默认运行服务的区别 服务的类型: Type:定义启动时的进程行为。它有以下几种值。 simple:默认值,执行ExecStart指定的命令,启动主进程 forking:以 fork 方式从父进程创建子进程,创建后父进程会立即退出 oneshot:一次性进程,Systemd 会等当 阅读全文
posted @ 2024-10-24 16:28 刘宏缔的架构森林 阅读(260) 评论(0) 推荐(0)
摘要: 一,列出服务 查看服务的命令: systemctl list-unit-files --type=service --state=enabled 结果: UNIT FILE STATE PRESET aegis.service enabled disabled aliyun.service enab 阅读全文
posted @ 2024-10-24 11:18 刘宏缔的架构森林 阅读(176) 评论(0) 推荐(0)
摘要: 一,列出所有服务: systemctl list-units --type=service 二,列出所有运行中的服务 1, 用--state指定状态 systemctl list-units --type=service --state=running 2,直接grep systemctl list 阅读全文
posted @ 2024-10-24 09:43 刘宏缔的架构森林 阅读(704) 评论(0) 推荐(0)