后端
安装

安装

一键安装

  1. 使用管理员账户登录面板
  2. 进入 管理 -> 节点, 复制节点相对应的安装命令

  1. 如无意外的话, 复制出来的命令和以下类似
bash <(curl -sSL "https://scripts.zeroteam.top/PortForwardGo/install.sh") --api example.com --secret example

安装命令

bash <(curl -sSL "https://scripts.zeroteam.top/PortForwardGo/install.sh") --api example.com --secret example

参数说明

Api

--api 面板地址

示例

--api example.com
--api example.com:443

完整示例

bash <(curl -sSL "https://scripts.zeroteam.top/PortForwardGo/install.sh") --api example.com
 
bash <(curl -sSL "https://scripts.zeroteam.top/PortForwardGo/install.sh") --api example.com:443

Secret

--secret 节点密钥

示例

--secret example

Listen

此参数可选

--listen 监听IP

示例

--listen 127.0.0.1
--listen auto # 自动获取

监听 IP 使用 auto 可以自动获取多 IP 机器的入口 IP

Proxy

此参数可选

--proxy 代理链接

示例

--proxy socks5://127.0.0.1:1080
--proxy socks5://username:[email protected]:1080
--proxy http://example.com
--proxy https://example.com
--proxy ssh://root:[email protected]:22

Service

此参数可选

--service 系统服务名称

示例

--service PortForwardGo

Mirror

此参数可选

--mirror 安装源地址

示例

--mirror https://pkg.zeroteam.top

Version

此参数可选

--version 指定版本号

示例

--version 1.1.6

Region

此参数可选

--region 国家/地区代码

使用特定地区优化配置

可用选项

  • CN 中国大陆 (不含港澳台)
  • IR 伊朗

示例

--region CN

RPC

此参数可选

  • 使用 gRPC
--rpc google
  • 使用 gRPC over WebSocket
--rpc websocket

DisableExec

此参数可选

--disable-exec

禁用 WebSSH / 终端 功能

MachineID

此参数可选

--machine-id generate
--machine-id <UUID>

机器标识符, 同节点下标识符不可重复

默认值: 从系统环境指纹生成唯一 UUID

使用 generate 会在安装时使用 uuidgen 生成随机标识符

需要安装 uuid-runtime 软件包

Disable IPv4 Report

此参数可选

--disable-ipv4-report

禁止上报 IPv4 地址到面板

Disable IPv6 Report

此参数可选

--disable-ipv6-report

禁止上报 IPv6 地址到面板

Offline

此参数可选

--offline

离线安装

如果出现 curl: command not found 的错误

  • CentOS / Alma Linux / Rocky Linux / Oracle Linux / Fedora / 其他 RHEL 系
yum update -y
yum install curl wget unzip tar gz sudo uuid-runtime -y
  • Ubuntu / Debian / Armbian
apt-get update -y
apt-get install curl wget unzip tar gz sudo uuid-runtime -y

然后再重新执行命令即可