frp_0.31.2_linux_386-linux.tar
systemctl status frps ● frps.service - Frp Server Service Loaded: loaded (/etc/systemd/system/frps.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2024-08-25 20:06:04 CST; 1 day 20h ago Main PID: 667 (frps) Tasks: 4 (limit: 2706) Memory: 17.1M CGroup: /system.slice/frps.service └─667 /usr/local/frp_0.31.2_linux_386/frps -c /usr/local/frp_0.31.2_linux_386/frps.ini Aug 27 16:14:43 iZ8vb59gsqaa2gjbi6n8g6Z frps[667]: 2024/08/27 16:14:43 [I] [proxy.go:92] [bcb008994eeb125b] [47.92.201.158] get a new work connection: [222.172.68.39:4>
ECS端frps.service的配置
[root@iZ8vbbrthcj721i1bwyyauZ system]# cat frps.service [Unit] Description=Frp Server Service After=network.target [Service] Type=simple Restart=on-failure RestartSec=5 ExecStart=/usr/local/frp_0.31.2_linux_386/frps -c /usr/local/frp_0.31.2_linux_386/frps.ini [Install] WantedBy=multi-user.target
客户端frpc的配置
root@115:/etc/systemd/system# cat frpc.service [Unit] Description=Frp Server Service After=network.target [Service] Type=simple Restart=on-failure RestartSec=5 ExecStart=/usr/local/frp_0.31.2_linux_386/frpc -c /usr/local/frp_0.31.2_linux_386/frpc.ini [Install] WantedBy=multi-user.target
ECS服务器端frps的启动
systemctl start frps
systemctl status frps
systemctl enable frps
客户端frpc的启动
systemctl start frpc
systemctl status frpc
systemctl enable frpc
启动成功后,将防火墙对应的端口打开,不用的端口删掉。
http://mofayingyu.xin/?p=45 这个地址可以监测到你的客户机是否成功启动。
http://xx.xxx.xxx.xx:端口号/static/#/
http://xx.xxx.xxx.xx:端口号/static/#/proxies/tcp