要在Debian系统上快速安装Caddy,请按照以下步骤操作:
打开终端。
首先,确保系统已更新。运行以下命令来更新软件包列表和升级现有软件包:
sudo apt update && sudo apt upgrade
wget -qO - https://dl.cloudflare.com/linux/releases/apt/pubkey.gpg | sudo apt-key add -
sudo bash -c 'echo "deb https://dl.cloudflare.com/linux/apt $(lsb_release -cs) main" > /etc/apt/sources.list.d/caddy.list'
sudo apt update
sudo apt install caddy
sudo systemctl start caddy && sudo systemctl enable caddy
http://localhost:8080
。您应该看到Caddy的欢迎页面。要访问Caddy的文件管理器(如果已启用),请将URL更改为http://localhost:8080/dashboard
。现在,您已经在Debian系统上成功安装了Caddy!