centos安装Jenkins

前提环境:git、maven、jdk
各Jenkins下载地址:https://pkg.jenkins.io/

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
yum install jenkins
或者
http://pkg.jenkins.io/redhat/jenkins-2.347-1.1.noarch.rpm,先下载下来,再传到服务器上
安装
rpm -ivh jenkins-2.347-1.1.noarch.rpm
配置
vim /etc/sysconfig/jenkins
监听端口
JENKINS_PORT="8080"
配置权限
JENKINS_USER="root"

修改目录权限
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
``

你可能感兴趣的:(Linux,jenkins,centos,运维)