Files
nexus/wiki/concepts/Socket激活机制.md
2026-04-14 16:02:50 +08:00

23 lines
615 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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]]