首先安装好jdk
获取安装包&安装
可以从下面地址查找安装包
下载安装包
http://pkg.jenkins.io/redhat/
https://pkg.jenkins.io/redhat-stable/
https://pkg.jenkins.io/redhat-stable/
下载安装包
wget http://pkg.jenkins.io/redhat/jenkins-2.101-1.1.noarch.rpm
rpm -ivh jenkins-2.101-1.1.noarch.rpm
rpm -ivh jenkins-2.101-1.1.noarch.rpm
配置
vi /etc/sysconfig/jenkins
修改端口号:
保存
修改端口号:
JENKINS_PORT="8180"
保存
启动Jenkins
systemctl start jenkins