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
相关推荐
少妇的美梦14 小时前
logstash教程
运维
chen94514 小时前
k8s集群部署vector日志采集器
运维
chen94514 小时前
aws ec2部署harbor,使用s3存储
运维
轻松Ai享生活19 小时前
5 节课深入学习Linux Cgroups
linux
christine-rr19 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神55519 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆19 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_2642208919 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++20 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy20 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡