跳到主要内容

Ubuntu 常用软件安装

Ubuntu 使用 apt 管理软件包。安装软件前建议先更新软件源。

基础命令

sudo apt update
sudo apt upgrade
sudo apt install git curl wget vim

常用软件

sudo apt install build-essential
sudo apt install nginx
sudo apt install docker.io
sudo apt install mysql-client
sudo apt install redis-tools

查看服务

systemctl status nginx
systemctl status docker

建议

  • 生产环境安装前先确认版本。
  • 重要配置修改前先备份。
  • 不确定的软件源不要随意添加。