1.4 KiB
1.4 KiB
title, type, tags, date
| title | type | tags | date | ||||
|---|---|---|---|---|---|---|---|
| Ubuntu安装FRP 0.65.0(x86_64)操作笔记 | source |
|
2025-03-06 |
Source File
Summary
- 核心主题:Ubuntu Server 24.04上安装配置FRP内网穿透客户端
- 问题域:Ubuntu上FRP通过systemd --user管理,需要linger授权实现用户级服务
- 方法/机制:下载amd64版本 → 配置frpc.toml → systemd --user管理 → loginctl enable-linger
- 结论/价值:Ubuntu上FRP通过systemd --user实现开机自启,比直接nohup更可靠
Key Claims
- FRP版本:0.65.0,CPU架构:x86_64 (amd64),安装路径:/opt/frp/frp_0.65.0_linux_amd64
- systemd --user服务文件:~/.config/systemd/user/frpc.service
- 必须执行loginctl enable-linger让用户级服务在登录前也能运行
- 重启命令:systemctl --user restart frpc
- 查看状态:systemctl --user status frpc
Key Concepts
- FRP:[TODO] 内网穿透工具
- systemd --user:用户级systemd服务管理
- linger:让用户级服务在非登录状态下也能运行的机制
Key Entities
Connections
- FRP ← 运行在 ← Ubuntu
- systemd --user ← 服务管理 ← FRP(Ubuntu)
Contradictions
- 与macOS launchd管理FRP对比:Ubuntu用systemd --user,macOS用launchd