User
User

Reputation: 319

How to check jenkins is installed in centos or not?

how to check Jenkins is installed in centOS7 or not?

Is there any command for that?.

Thanks!!

Upvotes: 11

Views: 62117

Answers (4)

Ritesh
Ritesh

Reputation: 533

You can check using following command

jenkins-lts --version

Upvotes: 0

shahin
shahin

Reputation: 3655

Just give

sudo service jenkins status

Upvotes: 1

Todor Minakov
Todor Minakov

Reputation: 20057

As you've installed it through yum, this command should do

sudo service jenkins status

This one also (it's the same):

sudo /etc/init.d/jenkins status

If they return a missing file error, e.g. something like

env: /etc/init.d/jenkins: No such file or directory

, it's not installed - at least not through a package manager.

Upvotes: 3

Goralight
Goralight

Reputation: 2107

Go to your /var/lib/jenkins/ there will be a file called config.xml

View that file cat config.xml and there should be a xml entry called:

<version>YourVersionNumber</version>

Or on the Jenkins home screen when it is running click the About button and you will see the version number there.

The generic start up for Jenkins is:

java -jar jenkins.war

Which can be found here

Upvotes: 12

Related Questions