centos yum或者rpm安装jenkins后起不来

 

vi /etc/init.d/jenkins

candidates="
/usr/local/jdk1.8.0_171/bin/java
/etc/alternatives/java
/usr/lib/jvm/java-1.8.0/bin/java
/usr/lib/jvm/jre-1.8.0/bin/java
/usr/lib/jvm/java-1.7.0/bin/java
/usr/lib/jvm/jre-1.7.0/bin/java
/usr/bin/java
"