# 进shh
ssh lingfeimo@10.6.11.219
pwd : abcd1234
cd /home/lingfeimo/cz
Wget https://github.com/fatedier/frp/releases/download/v0.37.1/frp_0.37.1_linux_amd64.tar.gz
tar -zxvf frp_0.37.1_linux_amd64.tar.gz
cd frp_0.37.1_linux_amd64
# 修改文件
vim frpc.ini
# frpc.ini
[common]
server_addr = 104.168.176.29
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
# 先看一下22端口有没有被占用
lsof -i:22
# 有占用的话杀一下
kill -9 22
# 运行脚本
nohup ./frpc -c ./frpc.ini &
2021-08-23
最新推荐文章于 2025-08-27 17:53:47 发布