- 按照官网安装jenkins https://pkg.jenkins.io/redhat-stable/
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
- 安装完毕之后修改java路径
修改为本地java安装路径
vim /etc/init.d/jenkins
- 修改端口 默认是8080
vim /etc/sysconfig/jenkins
- 启动jenkins
service jenkins start