Skip to content

一键脚本安装(二进制) ​

适合没有 Docker、希望用 systemd 常驻的服务器。

脚本只做三件事:判断 CPU 架构 → 拼接最新 Release 二进制下载链接 → 下载并运行。 服务注册与管理全部由主程序内置的 glsm v2 完成,脚本不参与任何 systemd 逻辑。

安装 ​

bash
# 安装并注册 systemd 服务(开机自启)后自动启动
curl -fsSL https://cnb.cool/liumou_site/GoPanel/-/raw/master/scripts/install.sh | bash -s -- -install

常用参数 ​

bash
# 指定版本 / 安装目录 / 下载源
curl -fsSL https://cnb.cool/liumou_site/GoPanel/-/raw/master/scripts/install.sh \
  | bash -s -- -install -v v1.0.0 -d /opt/gopanel

# 仅下载安装,不注册服务(前台手动运行)
curl -fsSL https://cnb.cool/liumou_site/GoPanel/-/raw/master/scripts/install.sh \
  | bash -s -- --no-start -d /opt/gopanel

# 卸载服务
/opt/gopanel/GoPanel -uninstall
参数说明默认值
-install注册 systemd 服务(开机自启)并启动—
-uninstall停止并删除 systemd 服务—
-service <action>服务操作:status / start / stop / restart—
-v, --version <tag>指定版本latest
-d, --dir <path>安装目录/opt/gopanel
--source <cnb|gitee>下载源cnb
--no-start仅下载安装,不启动、不注册服务—
--dry-run只打印下载链接与将要执行的命令—

下载文件名与架构 ​

下载地址形如 https://cnb.cool/liumou_site/GoPanel/-/releases/download/<tag>/GoPanel-linux-<arch>, latest 时自动指向最新 Release。

架构文件名
x86_64 / amd64GoPanel-linux-amd64
aarch64 / arm64GoPanel-linux-arm64
armv7 / armhfGoPanel-linux-arm-softfloat

手动编写 systemd 服务 ​

历史版本的 -install 之外,也可以自己写 unit:

ini
# /etc/systemd/system/gopanel.service
[Unit]
Description=GoPanel
After=network-online.target

[Service]
Type=simple
WorkingDirectory=/opt/gopanel
ExecStart=/opt/gopanel/GoPanel
Restart=on-failure

[Install]
WantedBy=multi-user.target
bash
systemctl daemon-reload && systemctl enable --now gopanel
journalctl -u gopanel -f

⚠️ 注意区分:下载安装脚本注册服务用的是主程序内置的 -install; 而源码编译出来的二进制当前入口不再内置服务注册,后台常驻请用上面的 unit 文件。

相关 ​

基于 AGPL-3.0 协议发布