其他玩法
安装百度云盘下载
chmod 777 /home/pi/Desktop/BaiduPCS-Go使用frp内网穿透
# frps.ini
[common]
bind_port = 7000使用systemctl设置开机自启命令
配置文件
常用命令
Last updated
# frpc.ini
[common]
# 指向公网服务器ip
server_addr = x.x.x.x
# 需要与frps.ini的bind_port相同
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
# 下面的端口号,是在其他设备登录树莓派需要用到的端口号
remote_port = 6000cd /lib/systemd/system
sudo nano frp.service[Unit]
Description=frp
[Service]
User=pi
Type=simple
ExecStartPre=/bin/sleep 10
ExecStart=/home/pi/Desktop/frp/frpc -c /home/pi/Desktop/frp/frpc.ini
[Install]
WantedBy=multi-user.target journalctl -f
# or
journalctl -xesystemctl enable frp.servicesystemctl start frp.servicesystemctl disable frp.servicesystemctl status frp.servicesystemctl restart frp.servicesystemctl list-units --type=service