One centos7, jdk8, Jenkins installation package.
Jenkins download address: https://jenkins.io/index.html
Transfer the downloaded file to centos, the path is arbitrary. Go to the corresponding path and execute the installation command:
rpm -ih jenkins-.rpm ---- is the version number
File Directory:
/usr/lib/jenkins/jenkins.war WAR package
/etc/sysconfig/jenkins configuration file
/var/lib/jenkins/ The default JENKINS_HOME directory
/var/log/jenkins/jenkins.log Jenkins log file
/etc/rc.d/init.d/jenkins Jenkins startup script
Start command:
service jenkins start
Error:
View detailed error information:
Solution:
Modify the Jenkins startup script: vim /etc/rc.d/init.d/jenkins
Perform start again: service jenkins start
Enter the password as prompted:
Download plugin: recommended plugin by default
success:
Recommended Posts