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

Starting, stopping, and restarting Jenkins on Ubuntu

Jenkins by default starts running when installed. 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: Start Jenkins at boot time 
        Loaded: loaded (/etc/init.d/jenkins; bad; vendor preset: enabled) 
        Active: active (exited) since Wed 2017-07-19 22:34:39 UTC; 6min ago 
        Docs: man:systemd-sysv-generator(8) 
主站蜘蛛池模板: 昔阳县| 乌拉特前旗| 沽源县| 城步| 呈贡县| 清丰县| 昌黎县| 肃宁县| 沾化县| 扎鲁特旗| 土默特左旗| 黔西县| 长乐市| 洛浦县| 五常市| 忻城县| 通化市| 兴宁市| 独山县| 马关县| 察哈| 广饶县| 夹江县| 清原| 白山市| 九江县| 海南省| 平谷区| 当阳市| 昆明市| 金阳县| 余江县| 平罗县| 永川市| 宁海县| 琼中| 云阳县| 奉化市| 蕉岭县| 九龙城区| 惠水县|