标签:usr 安装 ln -s https top linux jenkins配置 安装jenkins import
1、安装java
百度java,上java官网下载jdk-8u191-linux-x64.gz
tar xvf jdk-8u191-linux-x64.gz -C /usr/jdk1.8
环境变量
vim /etc/profile
export JAVA_HOME=/usr/jdk1.8
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
ln -s /usr/jdk1.8/bin/java /usr/bin/java
2、安装jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
sudo yum -y install jenkins
修改jenkins配置文件
sudo vim /etc/sysconfig/jenkins
JENKINS_USER="root"
JENKINS_PORT="80"
3、安装httpd,关闭防火墙
yum -y install httpd
service iptables stop
4、启动
service jenkins start
标签:usr 安装 ln -s https top linux jenkins配置 安装jenkins import
原文地址:https://www.cnblogs.com/kilometerwine/p/9882211.html