Installation under centos6.9 of jenkins learning

The following is a test installation under centos6.9:

Install jenkins under docker:

Visit 8080, enter the installation guide page, and find the initial password inside:

cat /home/jenkins_home/secrets/initialAdminPassword

**Direct installation: **

Install the java environment:

# cd /opt/
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie""http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz"
# tar xzf jdk-8u91-linux-x64.tar.gz
 

Of course, it is necessary to uninstall the installed java environment in advance:

rpm -qa | grep -E '^open[jre|jdk]|j[re|dk]'

Configure java environment variables:

vim /etc/profile

Add the following at the bottom of the profile file:

export JAVA_HOME=/opt/jdk1.8.0_91
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin

Update the configuration file to make the configuration take effect:

source /etc/profile

Add jenkins yum source:

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

Install jenkins:

yum install jenkins

Start jenkins:

service jenkins start

Set jenkins to start automatically:

chkconfig jenkins on

If an error similar to the following occurs:

Starting Jenkins bash: /usr/bin/java: No such file or directory [FAILED]

It is because the default java path of jenkins is wrong, set as follows:

vi /etc/init.d/jenkins

Find the line /usr/bin/java, and add the following code below:

/opt/jdk1.8.0_91/bin/java

Then restart jenkins:

service jenkins start/stop/restart

If you still can't access it, try to close the linux firewall or allow port 8080 to pass through the firewall!

The full effect is as follows:

Recommended Posts

Installation under centos6.9 of jenkins learning
Centos7 installation and configuration of Jenkins
Installation and use of Mysql under CentOS
Installation and configuration of redis under centos7
Jenkins installation and deployment tutorial under CentOS 7
Graphical installation of CentOS8
Install Jenkins under Centos 7
Redis3 installation under Centos7
Installation and configuration of rsync server under CentOS 6.5
Non-Root installation of Microsoft R Open under Centos
From installation to entry of FastDFS under Centos7
Redis cluster installation under CentOS
Redis cluster installation under CentOS
Centos7 silent installation of Oracle11g
CentOS environment installation of Docker
Installation and cracking of confluence6.3 operation records under Centos
Installation and cracking of Jira7 operation records under Centos
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
Installation of deb package under Ubuntu
Detailed explanation of Spark installation and configuration tutorial under centOS7
CentOS7 installation and maintenance of Gitlab
CentOS + Jenkins
Java-JDK installation and configuration under CentOS
001. Installation of enterprise-level CentOS7.6 operating system
Installation of Docker CE under Ubuntu
2019-07-09 CentOS7 installation
centos7_1708 installation
Erlang 20.2 installation and deployment under CentOS 7
Installation of python common libraries under windows
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
Centos-6.5 installation and deployment of LNMP environment
Centos7 installation and deployment of gitlab server
Installation and uninstallation of CUDA under Ubuntu 16.04
Zabbix installation and deployment and localization under CentOS
The fourth installment of Zabbix under CentOs7
KVM installation and preliminary use under CentOS 7.2
Construction of Zabbix monitoring platform under CentOS7
Novice learning Linux (eight) ---- MySql installation (Centos7)
Centos7 installation and deployment of Airflow detailed
Centos5 installation guide
Python - centos6 installation
CentOS7 build jenkins
Docker installation (CentOS7 installation)
CentOS7 docker installation
Installation of pulseaudio and API usage under Ubuntu 12.04
CentOS 7 installation and configuration graphic tutorials under VMware10
The actual combat of rpm packaging under CentOS6
Centos7 installation of PHP and Nginx tutorial detailed
Installation and configuration of CentOS 7 in VMware Workstation
MySQL 8.0 installation and deployment under CentOS, super detailed!
Modify the default encoding of mysql5.6 under CentOS7
Distributed deployment of Apollo configuration center under CentOS8
CentOS online installation RabbitMQ3.7
Deploy GitBook under CentOS7
Compile Hadoop-2.7.6 under CentOS7.4
Zabbix 2.2.20 installation details (Centos6.9)
Install ActiveMQ under Centos7
Centos source installation Python3
lamp (centos7) installation lamp environment
Install PostgreSQL12 under CentOS7