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

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) 
主站蜘蛛池模板: 兰考县| 冷水江市| 阳曲县| 绥化市| 铁岭市| 华池县| 炎陵县| 周至县| 沈丘县| 句容市| 张家口市| 靖边县| 华蓥市| 崇阳县| 萨迦县| 金坛市| 贺州市| 红原县| 明溪县| 田东县| 甘洛县| 彩票| 永新县| 邯郸市| 卢氏县| 新和县| 泉州市| 三门峡市| 泌阳县| 南阳市| 吉安市| 淮北市| 南雄市| 信宜市| 望城县| 方城县| 长海县| 县级市| 闽侯县| 马鞍山市| 长兴县|