持續整合docker--第一篇(環境準備)
阿新 • • 發佈:2018-12-26
1.1 解除安裝openjdk
yum -y remove java java-1.8.0-openjdk
1.2 下載jdk
wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm
1.3 安裝jdk
rpm -ivh jdk-8u172-linux-x64.rpm
2、安裝maven
2.1 下載
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
2.2 解壓
tar -zxvf apache-maven-3.5.3-bin.tar.gz
2.3 配置環境變數 vi /etc/profile
export MAVEN_HOME=/opt/apache-maven-3.5.3 export PATH=$PATH:$MAVEN_HOME/bin
2.4 環境變數生效 source /etc/profile
3、安裝git
yum install git -y
4、安裝docker
4.1 安裝docker
yum install docker -y
4.2 啟動docker
systemctl enable docker //設定為開機啟動 systemctl start docker //啟動docker服務
4.3 檢視docker是否安裝成功
docker images