centos 7 + JDK 1.8.0_381+jenkins-2.346.3-1.1环境搭建与安装

一.查询JDK版本与Jenkins版本对应关系:
https://pkg.jenkins.io/redhat-stable/

二.centos 7 安装JDK 1.8版本


三.下载并安装jenkins
wget https://repo.huaweicloud.com/jenkins/redhat-stable/jenkins-2.346.3-1.1.noarch.rpm
rpm -ivh jenkins-2.346.3-1.1.noarch.rpm

四.配置权限
vim /etc/sysconfig/jenkins

#修改配置
$JENKINS_USER="root"


五.修改jenkins启动默认端口8080(有需要可更改)
vi /etc/sysconfig/jenkins
JENKINS_PORT="8888"

六.启动Jenkins
cd /etc/init.d

#启动jenkins
./jenkins start

#重启jenkins
./jenkins restart

#停止jenkins
./jenkins stop

posted @ 2023-10-30 14:09  Eillot  阅读(473)  评论(0编辑  收藏  举报