官术网_书友最值得收藏!

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 Docs: man:systemd-sysv-generator(8) Process: 1081 ExecStart=/etc/rc.d/init.d/jenkins start
(code=exited, status=0/SUCCESS) CGroup: /system.slice/jenkins.service └─1706 /etc/alternatives/java
-Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true
-DJENKINS_HOME=/var/lib/j...

In order to troubleshoot Jenkins, access the logs in var/log/jenkins/jenkins.log.

The Jenkins service runs with the user Jenkins, which automatically gets created upon installation.

主站蜘蛛池模板: 深圳市| 威海市| 滕州市| 肃北| 东光县| 宝应县| 阜新| 临洮县| 景德镇市| 浦北县| 恩施市| 柳州市| 石屏县| 博白县| 阜城县| 区。| 若尔盖县| 青冈县| 遵化市| 镇平县| 叶城县| 恭城| 云浮市| 沙田区| 金寨县| 长宁县| 固原市| 共和县| 绥棱县| 无为县| 泸西县| 江北区| 保山市| 怀集县| 新田县| 都江堰市| 康定县| 禄劝| 精河县| 甘泉县| 江达县|