Frps服务端一键配置脚本,Frp最新版本:0.41.0
Frps-Onekey-Install-Shell For CentOS/Debian/Ubuntu/Fedora (32bit/64bit)
Install(安装)
Aliyun
wget https://code.aliyun.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
Github
wget https://raw.githubusercontent.com/MvsCode/frps-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
Uninstall(卸载)
./install-frps.sh uninstall
Update(更新)
./install-frps.sh update
Server management(服务管理器)
Usage: /etc/init.d/frps {start|stop|restart|status|config|version}
Uninstall(卸载): ./install-frps.sh uninstall
Update(更新版本) : ./install-frps.sh update
Server management(服务管理器)命令: /etc/init.d/frps {start|stop|restart|status|config|version}
服务启动: /etc/init.d/frps start
服务停止:/etc/init.d/frps stop
服务重启:/etc/init.d/frps restart
服务状态:/etc/init.d/frps status
服务配置文件:/etc/init.d/frps config
服务版本号:/etc/init.d/frps version
看配置文件学习,看注释说明
https://github.com/fatedier/frp#configuration-file
服务端配置https://github.com/fatedier/frp/blob/master/conf/frps_full.ini
客户端配置https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini
nginx 配置
添加配置,可以使用泛解析
server { listen 80; server_name 域名.com; location / { proxy_pass http://127.0.0.1:端口; proxy_redirect http://$host/ http://$http_host/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; } }
Congratulations, frps install completed!
================================================
You Server IP : 47.243.29.82
Bind port : 5555
KCP support : true
vhost http port : 6666
vhost https port : 6667
Dashboard port : 6443
token : 18611349003
subdomain_host : 47.243.29.82
tcp_mux : true
Max Pool count : 200
Log level : info
Log max days : 9
Log file : enable
================================================
frps Dashboard : http://47.243.29.82:6443/
Dashboard user : admin
Dashboard password : awxbnnyg99
================================================
frps status manage : frps {start|stop|restart|status|config|version}
Example:
start: frps start
stop: frps stop
restart: frps restart