【安装】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"
配置权限
- 修改用户为root
vim /etc/sysconfig/jenkins
#修改配置
$JENKINS_USER="root"
- 修改目录权限
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
- 重启
service jenkins restart
登录
访问地质localhost:8080