#youtube
https://youtu.be/lBskEcqMvsg
#经常会在主控端安装被控失败,暂时无解
#项目地址
https://github.com/henrygd/beszel
https://cdn.naixi.net/thread-2031-1-1.html
#项目说明
https://github.com/henrygd/beszel/blob/main/supplemental/guides/systemd.md
#更新和安装必要的组件
apt update && apt upgrade -y && apt install curl wget sudo unzip -y
#官方安装脚本
curl -sL https://raw.githubusercontent.com/henrygd/beszel/main/supplemental/scripts/install-hub.sh -o install-hub.sh && chmod +x install-hub.sh
#启动脚本
./install-hub.sh
#安装 caddy
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl && 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 && sudo apt update && sudo apt install caddy
#默认配置文件目录
/etc/caddy/caddyfile
//配置文件
example.com {
reverse_proxy 127.0.0.1:8090
}
#测试配置文件
caddy validate –config /etc/caddy/Caddyfile
#启动服务端
caddy run –config /etc/caddy/Caddyfile
//得到“certificate obtained successfully ” “releasing lock”
#关闭caddy
ctrl+c
#后台运行caddy:
caddy start –config /etc/caddy/Caddyfile
caddy常用指令:
前台运行caddy:
caddy run
后台运行caddy:
caddy start
停止caddy:
caddy stop
重载配置:
caddy reload