ubuntu 开发软件安装

jdk

bash 复制代码
tar -zxvf jdk-8u311-linux-x64.tar.gz jdk1.8.0_311/

-- /etc/profile
export JAVA_HOME=/opt/java/jdk1.8.0_311
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=.:${JAVA_HOME}/bin:$PATH

souce /etc/profile

maven

上传aliyun-settings.xml

bash 复制代码
export M2_HOME=/opt/maven/apache-maven-3.8.3
export MAVEN_HOME=/opt/maven/apache-maven-3.8.3
export PATH=${M2_HOME}/bin:${PATH}

docker

bash 复制代码
apt-get remove docker docker-engine docker.io containerd runc

-- 更新本地软件源列表
sudo apt-get update
-- 根据刚才更新的软件源更新本地软件库
sudo apt-get upgrade

-- 安装基本软件
apt-get install apt-transport-https ca-certificates curl software-properties-common lrzsz -y

-- 使用阿里云的源{推荐}
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

-- 安装docker
apt-get install docker-ce -y

-- docker 测试
docker version

-- 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器
-- 登录地址:https://cr.console.aliyun.com/cn-beijing/instances/mirrors

{
  "registry-mirrors": ["https://t02zofco.mirror.aliyuncs.com"]
}

systemctl daemon-reload
systemctl restart docker

-- 测试docker pull
docker run hello-world
相关推荐
HWL56791 小时前
“preinstall“: “npx only-allow pnpm“
运维·服务器·前端·javascript·vue.js
小米里的大麦2 小时前
022 基础 IO —— 文件
linux
Xの哲學2 小时前
Perf使用详解
linux·网络·网络协议·算法·架构
门前灯2 小时前
Linux系统之iprconfig 命令详解
linux·运维·服务器·iprconfig
tb_first3 小时前
k8sday09
linux·云原生·容器·kubernetes
忧郁的橙子.3 小时前
三、k8s 1.29 之 安装2
linux·运维·服务器
huangyuchi.3 小时前
【Linux系统】动静态库的制作
linux·运维·服务器·动态库·静态库·库的简单制作
闻不多3 小时前
用llamaindex搭建GAR遇到400
android·运维·服务器
jim写博客4 小时前
Linux进程概念(四)环境地址变量
linux·运维·服务器
是小崔啊4 小时前
【Jenkins】01 - Jenkins安装
运维·jenkins