An open API service indexing awesome lists of open source software.

https://github.com/wojiushixiaobai/1panel-installer

1Panel 离线安装包
https://github.com/wojiushixiaobai/1panel-installer

1panel

Last synced: 6 months ago
JSON representation

1Panel 离线安装包

Awesome Lists containing this project

README

          

# 1Panel-installer

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

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

Docker 手动安装请参考 [Docker 官方文档](https://docs.docker.com/engine/install/#server).
Compose 手动安装请参考 [Compose 官方文档](https://docs.docker.com/compose/install/).

## 食用方法

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

| OS/Arch | Arch | Architecture |
| --------------- | --------- | ------------- |
| `linux/amd64` | `amd64` | `x86_64` |
| `linux/arm64` | `arm64` | `aarch64` |
| `linux/arm/v6` | `armv6` | `armel` |
| `linux/arm/v7` | `armv7` | `armhf` |
| `linux/loong64` | `loong64` | `loongarch64` |
| `linux/ppc64le` | `ppc64le` | `ppc64le` |
| `linux/riscv64` | `riscv64` | `riscv64` |
| `linux/s390x` | `s390x` | `s390x` |

### 环境依赖

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

- [x] tar
- [x] iptabls
- [x] systemd

### 参数说明

./install.sh --help

```bash
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/

```

### 安装

```bash
## 后台的相关设置, 自行修改
# (*) 密码推荐使用 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 命令处理).

```bash
./upgrade.sh
```

```sqlite
# 请根据自己实际的安装路径修改 /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
```

```bash
systemctl restart 1panel
```

### 卸载

```bash
1pctl uninstall
```

## 专业版

需要购买专业版可以使用推荐码 [78Ty5WXr](https://www.lxware.cn/?code=78Ty5WXr),专业版功能请参考 [1Panel 官网](https://1panel.cn/)