jenkins安装

jenkins安装

  • JDK version 9
sudo apt install openjdk-9-jre
  • JDK version 8
sudo apt install openjdk-8-jre
  • Open Jenkins configuration file
sudo vi /etc/init.d/jenkins

Finally, append path to the new java executable (line 16):
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin/

4. 常用命令

// 查看jenkins运行状态
sudo service jenkins status

// 启动jenkins服务
sudo service jenkins start

// 重启jenkins服务
sudo service jenkins restart

// 停止jenkins服务
sudo service jenkins stop

你可能感兴趣的:(软件安装,jenkins)