比哪吒探针更轻量 安全 美观 - beszel部署
开源在GitHub MIT协议GitHub link:
https://github.com/henrygd/beszel
主控机需要安装docker/docker compose
> 也可以使用二进制文件部署主控
## 部署dashboard端:
下载`docker-compose.yml`文件
```
wget https://github.com/henrygd/beszel/raw/refs/heads/main/supplemental/docker/hub/docker-compose.yml
```
启动:
```
docker compose up -d
```
启动后 访问
```
http://:8090
```
来创建管理员账户
## 添加被控端
创建完毕后 进入后台添加服务器
!(https://i.111666.best/image/uBoprZlQTeHe2cSWkQh0Za.jpg)
点击复制下面的安装命令 到添加的被监视端安装
安装过程中会提示你是否要启用启动更新
```
Would you like to enable automatic daily updates for beszel-agent? (y/n):
```
如有特殊需要 则输入n禁用自动更新 反之输入y启用自动更新
输出以下内容代表安装完成 在面板按下添加即可
```
Beszel Agent has been installed successfully! It is now running on port 45876.
```
随后即可在面板看到机器已上线
!(https://i.111666.best/image/EQlk4bVvI2Ad227yEZoM6U.jpg)
## 反向代理
(这里以caddy2+Debian/Ubuntu为例)
安装caddy2
```
apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
apt update
apt install caddy
```
为caddy设置开机自动启动
```
systemctl enable caddy
```
修改`/etc/caddy/Caddyfile`
```
example.com {
reverse_proxy 127.0.0.1:8090
}
```
然后启动caddy
```
systemctl start caddy
```
> caddy会自动申请ssl证书
查看caddy状态&重启
```
systemctl status caddy
systemctl restart caddy
```
提供一个我部署的Demo:
https://test.bash.us.kg
user:[email protected]
passwd:[email protected]
## 与哪吒进行客观对比
- 优点:简洁轻量 比哪吒更容易上手 采用ssh-ED25519进行通信 甚至可以在组大内网后填写内网IP而并非暴露在公网的IP 安全系数更高
- 缺点:待补充
页:
[1]