logo
0
0
Login
perf: 优化脚本

1Panel-installer

1Panel 离线安装包, 供无法访问外网的用户使用

(*) 注意: 带 offline 的是离线安装包, 不带 offline 的需要自行部署好 DockerCompose 环境.

Docker 手动安装请参考 Docker 官方文档.
Compose 手动安装请参考 Compose 官方文档.

食用方法

下载对应版本的离线安装包, 解压后运行 install.sh 或者 upgrade.sh 即可安装或者升级.

OS/ArchArchArchitecture
linux/amd64amd64x86_64
linux/arm64arm64aarch64
linux/arm/v6armv6armel
linux/arm/v7armv7armhf
linux/loong64loong64loongarch64
linux/ppc64leppc64leppc64le
linux/riscv64riscv64riscv64
linux/s390xs390xs390x

环境依赖

请使用 root 用户执行安装脚本, 并且确保环境中已经存在下面命令:

  • tar
  • iptabls
  • systemd

参数说明

./install.sh --help

Usage: ./install.sh [OPTIONS] Global Options: -h, --help Show this help message and exit -v, --version Show the version information --port Configure web access port in the Installation Phase. --user Configure 1Panel user in the Installation Phase. --password Configure 1Panel password in the Installation Phase. --entrance Configure 1Panel web security access in the Installation Phase. --install-dir Configure 1Panel install directory in the Installation Phase. For more help options on how to use 1Panel, head to https://1panel.cn/docs/

安装

## 后台的相关设置, 自行修改 # (*) 密码推荐使用 24 位以上的随机字符串 # (*) 入口推荐使用随机字符串, 比如 --entrance x8elulqXDVTszo6o4j 注意不支持特殊字符串 # # --port 8888 # 端口号 8888 # --user admin # 用户名, 通常不要使用 admin 作为用户名 # --password WeakPassword # 密码, 请使用强密码 # --entrance secret # 设置 entrance 后只能通过访问 http://ip:port/secret 访问 1Panel # --install-dir /opt/1panel # 1Panel 数据存储目录 ./install.sh --port 8888 --user admin --password WeakPassword --entrance secret --install-dir /opt/1panel

升级

升级没有参数, 直接执行即可 (由于版本被写死在数据库里面, 需要通过 sqlite3 命令处理).

./upgrade.sh
# 请根据自己实际的安装路径修改 /opt/1panel/db/1Panel.db sqlite3 /opt/1panel/db/1Panel.db # v1.10.21-lts 改成你升级后的版本号即可 UPDATE settings SET value = 'v1.10.21-lts' WHERE key = 'SystemVersion'; .exit
systemctl restart 1panel

卸载

1pctl uninstall

专业版

需要购买专业版可以使用推荐码 78Ty5WXr,专业版功能请参考 1Panel 官网