1.安装ubuntu系统 24.04
2.更换软件安装源
备份原本源:
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak
打开ubuntu.sources粘贴以下代码:
#阿里云
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
3.安装docker
sudo apt install docker.io
检查是否安装成功:
docker -v
4.安装jdk环境
sudo apt install openjdk-8-jdk
检查是否安装成功:
java -version
5.安装java的依赖管理工具Maven
sudo apt install maven
检查是否安装成功
mvn -v