zoukankan      html  css  js  c++  java
  • frp 使用入门

    1、下载安装对应系统版本

    https://github.com/fatedier/frp/releases/

    2、将下载的frp移动到系统软件目录

     mv frp/ /usr/local

    3、配置frp

    vim /etc/systemd/system/frps.service
    [Unit]  
    Description=frps Daemon  
    After=syslog.target network.target  
    Wants=network.target  
    
    [Service]  
    Type=simple  
    ExecStart=/usr/local/frp/frps -c /etc/frps.ini
    Restart=always  
    RestartSec=1min  
    ExecStop=/usr/bin/killall frps  
    
    [Install]  
    WantedBy=multi-user.target  

    配置/etc/frps.ini:

    [common]
    bind_addr = 0.0.0.0
    bind_port = 7000
    systemctl enable frps.service
    systemctl start frps.service  

    配置/etc/frpc.ini,转发ssh到公网6000端口:

    [common]
    server_addr = x.x.x.x
    server_port = 7000
    
    [ssh]
    type = tcp
    local_ip = 127.0.0.1
    local_port = 22
    remote_port = 2222
    ./frpc -c frpc.ini
  • 相关阅读:
    leetcode231
    leetcode326
    leetcode202
    leetcode121
    leetcode405
    leetcode415
    2019-9-2-win10-uwp-应用转后台清理内存
    2019-9-2-win10-uwp-应用转后台清理内存
    ACM学习心得
    ACM学习心得
  • 原文地址:https://www.cnblogs.com/zheh/p/10220160.html
Copyright © 2011-2022 走看看