Starting, stopping, and restarting Jenkins on Red Hat Linux

Here are the commands to start, stop, restart, and check the status of the Jenkins service:

  1. To start Jenkins, use the following command:
        sudo systemctl start jenkins 
  1. Similarly, to stop Jenkins, use the following command:
        sudo systemctl stop jenkins 
  1. To restart Jenkins, use the following command:
        sudo systemctl restart jenkins 
  1. To check the status of the Jenkins service, use the following systemctl command:
        sudo systemctl status jenkins  
  1. You should see the following output:
        ● jenkins.service - LSB: Jenkins Automation Server 
          Loaded: loaded (/etc/rc.d/init.d/jenkins; bad;          vendor preset: disabled) 
          Active: active (running) since Wed 2017-07-19 18:45:47 EDT; 2min 31s ago ...