# 安装 Maven 使用方法: ```sh curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/maven/install-maven3.sh | bash ``` 脚本会下载解压 maven 到 `/opt/maven` 路径下。 如果需要使用国内镜像(如 aliyun 镜像)加速,可以使用 settings-aliyun.xml 替换默认 settings.xml