@JS's Notes

Site with notes from my work.

Redmine on CentOS 7

2019-10-08 System @JS

My test platform: CentOS Linux release 7.6.1810 (Core)

Requirements: user with root privileges or non-root user with sudo privileges.

Java installation:
$ sudo yum install java-1.8.0-openjdk-devel -y
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
Jenkins installation:
$ curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
$ sudo yum install jenkins -y

Start and enable the jenkins service:

$ sudo systemctl start jenkins.service
$ systemctl status jenkins.service
$ sudo systemctl enable jenkins.service

Reboot the system and make sure jenkins service running:

$ systemctl status jenkins.service
Configure Settings:
  1. Open your web browser and enter the URL of your Jenkins website, followed by the default service port 8080 ( http://url-address:8080 ).

  2. Type Jenkins auto-generated password. Run the following command to get a password for one time:

$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
  1. Install the plugins into Jenkins system. Select installed suggested plugin to install all defaults plugin.

  2. Create Admin user - fill all details and click on Save and Continue button.

  3. Instance Configuration - you can change the URL and port for Jenkins. Click on Save and Finish button.