docker_jdk's Introduction
### 启动命令 docker run -it -v bigdata_software:/root/bigdata_software --name ubuntu ubuntu:latest ### 安装基本的环境配置 apt-get update apt-get upgrade -y apt-get install -y vim wget ssh apt-get clean ### 将开启sshd服务的命令放入到.bashrc中 ``` vim ~/.bashrc 在最后一行 /etc/init.d/ssh start ``` ### 配置sshd 安装好sshd后,需要配置ssh无密码连接本地sshd服务 ``` ssh-keygen -t rsa cd ~/.ssh cat id_rsa.pub >> authorized_keys ``` ### 安装和配置指定的jdk8 ``` apt-get install openjdk-8-jdk -y vim ~/.bashrc export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ export PATH=$PATH:$JAVA_HOME/bin ``` ### 安装和配置jdk(默认方式安装的话,会是jdk11) ``` apt-get install default-jdk -y vim ~/.bashrc export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ export PATH=$PATH:$JAVA_HOME/bin ``` ### 生效 source ~/.bashrc ### 登陆我的阿里云镜像仓库保存 docker login docker push
docker_jdk's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.