Loading...

文章背景图

1Panel 面板

2025-02-05
0
-
- 分钟
|

官方文档:https://1panel.cn/docs/v2/installation/online_installation/

开始之前我们需要更新系统并安装依赖

sudo apt update && sudo apt install -y curl wget

我们的服务器是 Debian 12.6 64 系统,具体的命令我们可以去找官网找到如何在对应服务器中安装的命令,例如我们使用:

bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)"

一定要记住他给出的默认端口号,有不同的记得自己稍作修改
设置安装目录,我选择了 /opt(默认)

设置 1Panel 安全入口:1Panel 会自动随机生成安全入口,也可以手动设置,默认即可
保存1Panel登录地址、安全入口、用户名和密码信息
当然,如果忘记了也没关系,远程连接到云服务器后,执行 1pctl user-info 命令可获取安全入口(entrance)

[1Panel Log]: 正在启动 1Panel 服务
[1Panel Log]: 1Panel 服务已成功启动,正在继续执行后续配置,请稍候...
[1Panel Log]:
[1Panel Log]: =================感谢您的耐心等待,安装已完成==================
[1Panel Log]:
[1Panel Log]: 请使用您的浏览器访问面板:
[1Panel Log]: 外部地址:  http://xxxx:35962/786c86009d
[1Panel Log]: 内部地址:  http://xxxx.198:35962/786c86009d
[1Panel Log]: 面板用户:  xxxxx
[1Panel Log]: 面板密码:  xxxxx
[1Panel Log]:
[1Panel Log]: 官方网站: https://1panel.cn
[1Panel Log]: 项目文档: https://1panel.cn/docs
[1Panel Log]: 代码仓库: https://github.com/1Panel-dev/1Panel
[1Panel Log]: 前往 1Panel 官方论坛获取帮助: https://bbs.fit2cloud.com/c/1p/7
[1Panel Log]:
[1Panel Log]: 如果您使用的是云服务器,请在安全组中打开端口 35962
[1Panel Log]:
[1Panel Log]: 为了您的服务器安全,离开此屏幕后您将无法再次看到您的密码,请记住您的密码。
[1Panel Log]:
[1Panel Log]: ================================================================

忘记密码?

1pctl user-info
1pctl update password

如果想反向代理我们的 1panel 主面板,我们需要先删除安全入口,然后去配置即可

然后需要做的优化如下(因为软件还在持续更新中,所以具体情况需要具体分析):

  1. 自动续签 SSL 证书:https://www.bilibili.com/video/BV1dsszexENL?vd_source=f97fa8897037b9aa86e3e6a9b1f3934f

  2. 申请和自动续签泛域名证书:https://blog.ktzz.cc/2024/06/25/use-1panel-request-certs/

  3. 添加子域名 (二级域名):https://blog.csdn.net/corleone_4ever/article/details/104167024

评论交流

文章目录