首页 > 代码库 > centos下安装Jenkins轻松搞定
centos下安装Jenkins轻松搞定
jenkins安装步骤如下:
命令:yum -y list java*
yum -y install java-1.7.0-openjdk.x86_64 -------- 搭建jdk的环境
java
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpm
yum -y install apache-maven
ls
rpm -ivh jenkins-2.7.3-1.1.noarch.rpm
vim /etc/sysconfig/jenkins -------- 修改配置文件,默认端口为8080,如果不冲突则不需要修改
service jenkins restart ----------启动jenkins服务
vim /var/lib/jenkins/secrets/initialAdminPassword ----------查看jenkins密码并复制
接下来在浏览器启动端口服务,输入jenkins密码即可下载相关软件包
centos下安装Jenkins轻松搞定