1. 后台启动:
    2. nohup ./frps -c frps.ini &
    3. 1、后台运行frp服务
    4. 服务端: nohup ./frps -c frps.ini >/dev/null 2>&1 &
    5. 客户端: nohup ./frpc -c frpc.ini >/dev/null 2>&1 &
    6. 说明:>/dev/null 2>&1 &,表示丢弃。
    7. frpc配置:
    8. [common]
    9. #服务器域名&IP
    10. server_addr = 140.143.133.61
    11. #通信端口,必须和frps一致
    12. server_port = 7000
    13. #特权密码必须和frps一致
    14. token = password
    15. [Proxy_Name]
    16. #type = 类型包含 udp/tcp/http/https
    17. type = http
    18. #内网IP
    19. local_ip = 19.96.7.12
    20. #内网端口
    21. local_port = 80
    22. #加密
    23. use_encryption = false
    24. #内容压缩
    25. use_compression = true
    26. #域名,需要将你的域名解析至frps所在的服务器IP即可 #如果你是用免费的服务器需要将您的域名解析到免费服务器的IP
    27. custom_domains = hide.zllog.cn
    28. frps配置:
    29. [common]
    30. #通信端口 默认 7000
    31. bind_port = 7000
    32. #udp端口默认7001
    33. bind_udp_port = 7001
    34. #kcp端口
    35. kcp_bind_port = 7000
    36. # vhost端口默认为:80 web服务)
    37. vhost_http_port = 8080
    38. # vhosthttps)端口默认为:443
    39. vhost_https_port = 443
    40. #面板地址 可默认为:0.0.0.0 无需进行修改
    41. dashboard_addr = 0.0.0.0
    42. #面板访问端口 可修改 默认为:7500
    43. dashboard_port = 7500
    44. #面板访问账号默认为:admin
    45. dashboard_user = admin
    46. #面板访问密码默认:admin
    47. dashboard_pwd = admin
    48. # 特权密码默认:12345678 可自行修改
    49. token = password