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

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.

主站蜘蛛池模板: 安福县| 大城县| 黄龙县| 昆山市| 敖汉旗| 凤翔县| 信宜市| 双鸭山市| 康马县| 眉山市| 克东县| 马龙县| 磐安县| 宜章县| 弥渡县| 顺昌县| 葫芦岛市| 德昌县| 安西县| 祁东县| 德格县| 外汇| 文成县| 师宗县| 镇康县| 喀什市| 阿瓦提县| 印江| 池州市| 沁阳市| 颍上县| 麻江县| 黄冈市| 佛冈县| 永顺县| 宜阳县| 安徽省| 曲阳县| 伊宁县| 内黄县| 贵溪市|