✍️
HOME
  • Introduction
  • Android
    • 基础
      • 文件读写
      • View
      • ViewGroup
      • Drawable
        • Shape
        • Selector
      • RecycleView
      • Databinding
    • Android Studio Git使用教程
    • Android Studio 版本更新历史
    • Maven 依赖管理
  • Linux
    • Linux系统安装
    • Linux 基础知识
    • Linux 服务器维护
    • 树莓派
    • Ubuntu
    • CDLinux
    • Shell Auto
    • 酸酸乳好喝
    • 后台运行
    • FRP
    • V +
  • Mac
    • Mac 版迅雷去广告
    • Homebrew 管理应用
    • 装机必备
  • Web
    • 前端环境搭建
    • 特殊需求
    • Python
  • Dev
    • Git 常用命令
    • Git submodule 和 subtree
    • GitBook
    • 软件问题处理
Powered by GitBook
On this page
  • 简单SSH配置
  • 服务端frps
  • 客户端frpc
  • 参考

Was this helpful?

  1. Linux

FRP

简单SSH配置

服务端frps

配置文件/frp/frps.ini

[common]
bind_port = 7000
token = 12345678

自动启动/lib/systemd/system/frps.service

[Unit]
Description=fraps service
After=network.target network-online.target syslog.target
Wants=network.target network-online.target

[Service]
Type=simple
Restart=on-failure
RestartSec=300s

ExecStart=/frp/frps -c /frp/frps.ini

[Install]
WantedBy=multi-user.target

管理命令

# 允许开机启动
systemctl enable frps
# 启动
systemctl start frps
# 重启
systemctl restart frps
# 停止
systemctl stop frps
# 状态
systemctl status frps

客户端frpc

配置文件/frp/frpc.ini

[common]
server_addr = xxxx.xx
server_port = 7000
token = 12345678

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

自动启动/lib/systemd/system/frpc.service

[Unit]
Description=fraps service
After=network.target network-online.target syslog.target
Wants=network.target network-online.target

[Service]
Type=simple
Restart=on-failure
RestartSec=300s

ExecStart=/frp/frpc -c /frp/frpc.ini

[Install]
WantedBy=multi-user.target

管理命令

# 允许开机启动
systemctl enable frpc
# 启动
systemctl start frpc
# 重启
systemctl restart frpc
# 停止
systemctl stop frpc
# 状态
systemctl status frpc

参考

Previous后台运行NextV +

Last updated 4 years ago

Was this helpful?

Systemd 入门教程:实战篇
为 Syncer 选用守护进程工具