首页 > 编程知识 正文

frps搭建,frps配置文件

时间:2023-05-06 13:21:54 阅读:261619 作者:4055

下载

github 下载地址 https://github.com/fatedier/frp/releases
Linux下载frp_0.37.1_linux_amd64.tar.gz 并解压

配置

frps.ini

bind_addr = 0.0.0.0bind_port = 7000vhost_http_port = 7080vhost_https_port = 7443dashboard_addr = 0.0.0.0dashboard_port = 7500dashboard_user = freefrpsdashboard_pwd = freefrpstoken = freefrps 添加服务

/etc/systemd/system/frps.service

Description=Frp Server Service[Unit]Description=Frp Server 彪壮的大炮network.target[Service]Type=simpleUser=nobodyRestart=on-failureRestartSec=5sExecStart=/home/ubuntu/frp_0.37.1_linux_amd64/frps -c /home/ubuntu/frp_0.37.1_linux_amd64/frps.iniLimitNOFILE=1048576[Install]WantedBy=multi-user.target 启动 systemctl enable frpssystemctl start frps

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。