使用playit构建隧道
小于 1 分钟
官网:playit.gg
安装 playit
# 添加 playit 仓库,不然无法 apt install curl -SsL https://playit-cloud.github.io/ppa/key.gpg | sudo apt-key add - sudo curl -SsL -o /etc/apt/sources.list.d/playit-cloud.list https://playit-cloud.github.io/ppa/playit-cloud.list sudo apt update # 安装 playit sudo apt install playit注意依赖的报错信息,如 sudo、未安装 gnupg 等。
# 安装 gnupg sudo apt install gnupg apt install sudo运行 playit 客户端
playit # 如果报错,从 whereis 中找到路径后运行 # whereis playit /usr/local/bin/playit根据提示,打开web界面,进行隧道配置
后台保活
# apt install screen screen playit # /usr/local/bin/playit # 按下 Ctrl+A+D 组合键,即可后台保活 # 页面可能会乱码,看到有两个 true,就表示正常运行了,可用按组合键后台运行。 # nohup 保活 nohup playit > playit.log 2>&1 &
