I am trying to set up Jenkins-2.452.3-1.1.noarch.rpm on a CentOS 7.6 server. After using Command 1, the service starts successfully and the actual Jenkins interface is displayed.
Command 1:yum install jenkins-2.452.3-1.1.noarch.rpm
However, I noticed that the /etc/sysconfig/jenkins file and log files were not created. So I used Command 2 to remove Jenkins and then reinstalled it using Command 1.
Command 2:rpm -e jenkins
Despite trying this multiple times, the /etc/sysconfig/jenkins file was not created. How can I resolve this issue?
That Jenkins release has multiple security vulnerabilities, including at least one critical security vulnerability. At least choose 2.452.4 rather than 2.452.3.
Jenkins stopped supporting Red Hat Enterprise Linux 7 and its derivatives in November 2023 as announced in a blog post. Red Hat and the CentOS project stopped supporting RHEL 7 and CentOS 7 in June 2024. The final release of CentOS 7 was CentOS 7.9, not CentOS 7.6. If you must use an unsupported operating system, it is probably best to use the most recent release of the unsupported operating system.
That is correct. Jenkins switched in early 2022 from managing its services with System V init (/etc/sysconfig/jenkins) to use systemd. Refer to “Managing systemd services” for more details on the management of Jenkins on Linux.