Ubuntu 初始化及常用软件安装

编辑 / others / 发布于2022-05-13 / 更新于2023-03-16 / 阅读 348
更新软件列表
sudo apt update
更新软件
sudo apt upgrade
安装docker
apt install docker.io

安装caddy
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
sudo apt update
sudo apt install caddy
配置好后重启caddy
systemctl restart caddy