I couldnt start the jenkin service

after installing jenkins, couldnt start the service always getting filed.

What do the logs say?

[bob@centos-host ~]$ sudo systemctl status jenkins.service
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2024-04-03 14:22:36 UTC; 18s ago
Process: 1685 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 1685 (code=exited, status=1/FAILURE)

Apr 03 14:22:36 centos-host systemd[1]: Failed to start Jenkins Continuous Integratio…er.
Apr 03 14:22:36 centos-host systemd[1]: Failed to start Jenkins Continuous Integratio…er.
Hint: Some lines were ellipsized, use -l to show in full.
[bob@centos-host ~]$

That is just the output of systemctl status - it is also truncated, try running it with -l

What is in the jenkins log file in /var/log?

Did you install the correct version of Java first?