YueKi WiKi

个人维基百科与知识管理

用户工具

站点工具


服务器:jenkins

Jenkins 在 ubuntu 上的安装经验

1.java 安装

sudo apt-get update
sudo add-apt-respository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

2.

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

sudo apt-get update

sudo apt-get install jenkins
  1. 默认账户密码
    sudo cat /var/lib/jenkins/secrets/initialAdminPassword
sudo passwd jenkins

更新配置信息,如端口等

vim /etc/default/jenkins

启动、停止、重启

/etc/init.d/jenkins start
/etc/init.d/jenkins stop
/etc/init.d/jenkins restart

查看状态

/etc/init.d/jenkins status

访问8080端口

问题

jenkins配置权限不对导致无法登陆或者空白页面解决办法

<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
  <securityRealm class="hudson.security.SecurityRealm$None"/>