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

1.4 KiB
Raw Blame History

title, type, tags, date
title type tags date
Ubuntu安装FRP 0.65.0x86_64操作笔记 source
frp
frpc
ubuntu
内网穿透
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.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

  • Ubuntu24.04 Server操作系统
  • FRP:内网穿透工具

Connections

Contradictions

  • 与macOS launchd管理FRP对比Ubuntu用systemd --usermacOS用launchd