23 lines
615 B
Markdown
23 lines
615 B
Markdown
---
|
||
title: "Socket激活机制"
|
||
type: concept
|
||
tags: [systemd, ssh, ubuntu]
|
||
sources: [ubuntu-24-04-enable-ssh.md]
|
||
last_updated: 2026-04-14
|
||
---
|
||
|
||
## Definition
|
||
Socket激活机制是systemd的一种按需启动服务方式,服务在首次连接请求进入时才启动进程。
|
||
|
||
## Key Attributes
|
||
- 机制:有连接请求时才启动服务
|
||
- 适用:Ubuntu 24.04默认SSH使用ssh.socket
|
||
- 对比:传统ssh.service为常驻运行
|
||
|
||
## Related Entities
|
||
- [[OpenSSH]]:可配置为socket激活
|
||
- [[Ubuntu-Server]]:24.04版本引入了此机制
|
||
|
||
## Connections
|
||
- [[Socket激活机制]] ← 应用 ← [[OpenSSH]]
|