centos install jdk

安装之前先查看一下有无系统自带jdk

1
2
3
4
5
rpm -qa |grep java

rpm -qa |grep jdk

rpm -qa |grep gcj

如果有就使用批量卸载命令

1
rpm -qa | grep java | xargs rpm -e --nodeps 
阅读更多

centos install maven

1、获取安装包并解压

1
2
3
4
cd /usr/local
wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz

tar -zxvf apache-maven-3.6.3-bin.tar.gz
阅读更多

centos install jenkins

prepare: install JDK

install

1
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
1
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

如果不能安装就到官网下载jenkis的rmp包,官网地址(http://pkg.jenkins-ci.org/redhat-stable/)
一. 官方下载地址:https://jenkins.io/download/
二. 镜像下载地址:http://mirrors.jenkins-ci.org/

1
2
3
 wget  http://mirror.serverion.com/jenkins/redhat-stable/jenkins-2.235.1-1.1.noarch.rpm
rpm -ivh jenkins-2.222.3-1.1.noarch.rpm
yum install -y jenkins-2.222.3-1.1.noarch.rpm
1
yum install -y jenkins
阅读更多