- Learning Continuous Integration with Jenkins(Second Edition)
- Nikhil Pathania
- 148字
- 2021-07-02 21:18:38
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:
- To start Jenkins, use the following command:
sudo systemctl start jenkins
- Similarly, to stop Jenkins, use the following command:
sudo systemctl stop jenkins
- To restart Jenkins, use the following command:
sudo systemctl restart jenkins
- To check the status of the Jenkins service, use the following systemctl command:
sudo systemctl status jenkins
- 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.
推薦閱讀
- Kubernetes修煉手冊
- 操作系統(tǒng)實用教程(Linux版)
- Mobile-first Bootstrap
- 從零開始寫Linux內(nèi)核:一書學(xué)透核心原理與實現(xiàn)
- Extending Puppet
- 精解Windows8
- Linux操作系統(tǒng)應(yīng)用編程
- Windows Server 2012網(wǎng)絡(luò)操作系統(tǒng)企業(yè)應(yīng)用案例詳解
- Docker+Kubernetes應(yīng)用開發(fā)與快速上云
- 完美應(yīng)用RHEL 8
- Learning BeagleBone
- Linux系統(tǒng)安全:縱深防御、安全掃描與入侵檢測
- 鴻蒙HarmonyOS應(yīng)用開發(fā)從入門到精通
- OpenStack Trove Essentials
- Windows Server 2012活動目錄企業(yè)應(yīng)用(微課版)