ubantu 安装jekins

安装java

  • sudo apt-get updata
  • sudo apt-get install openjdk-8-jdk
  • java -version

安装jenkins

  • 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

启动/定制

  • sudo service jenkins start
  • sudo service jenkins stop

你可能感兴趣的:(环境搭建)