安装jdk:
yum search jdk
yum install java-1.8.0-openjdk-devel.x86_64
安装git:
yum install git
git version
安装maven:
vi /etc/profile
export M2_HOME=/usr/local/mavenexport PATH=$PATH:$M2_HOME/bin
source /etc/profile
mvn -version
安装jenkins:
wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import
https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
修改端口号 8088
cd /etc/sysconfig
vi jenkins
相关命令:
service jenkins start/stop/restart
启动后,选择自定义安装。
选上git和ssl
用jenkins部署时,注意权限控制