【安装】Centos7下安装jenkins

Centos7下安装jenkins

安装

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

报错解决方法

安装 epel-release

   yum  -y install epel-release

安装 daemonize

yum -y install daemonize

配置

vim /etc/sysconfig/jenkins

#修改配置
$JENKINS_USER="root"

配置权限

  1. 修改用户为root
vim /etc/sysconfig/jenkins
#修改配置
$JENKINS_USER="root"
  1. 修改目录权限
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
  1. 重启
service jenkins restart

登录

访问地质localhost:8080

posted @ 2022-02-21 09:39  是卡卡罗特啊  阅读(372)  评论(0编辑  收藏  举报