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