Files
nexus/wiki/sources/Ubuntu-FRP安装配置.md

39 lines
1.4 KiB
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: "Ubuntu安装FRP 0.65.0x86_64操作笔记"
type: source
tags: [frp, frpc, ubuntu, 内网穿透]
date: 2025-03-06
---
## Source File
- [[raw/Home Office/Ubuntu 安装 FRP 0.65.0x86_64操作笔记.md]]
## 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.0CPU架构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
- [[Ubuntu]]24.04 Server操作系统
- [[FRP]]:内网穿透工具
## Connections
- [[FRP]] ← 运行在 ← Ubuntu
- [[systemd --user]] ← 服务管理 ← FRPUbuntu
## Contradictions
- 与macOS launchd管理FRP对比Ubuntu用systemd --usermacOS用launchd