本文介绍了如何获取Jenkins进程的PID和端口#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要获得PID& Jenkins进程运行的端口号。如果我得到那个PID,我可以杀死这个过程,如果我需要的话。
I need to get PID & Port# for a Jenkins process run. If i get that PID, i can kill the process if ever i need to.
我通过以下命令运行Jenkins流程:
I am running the Jenkins process by below commands:
java -jar jenkins.war
有时,如果采用该端口并且发生以下情况,Jenkins进程将无法启动:
Sometimes, Jenkins Process fail to start if that port is taken and below occurs:
Jenkins home directory: /Users/MacPro/.jenkins found at: $user.home/.jenkins
Feb 27, 2016 10:46:09 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED
[email protected]:8080:java.net.BindException:
Address already in use
java.net.BindException: Address already in use
我知道如何针对特定端口#运行jenkins进程。
And I know how to run the jenkins process against a specific Port#.
需要知道PID和当前作业使用的端口的命令。
Need to know the commands for which PID and the port, current job is using.
推荐答案
命令如下:
ps -ef| grep jenkins
它将显示进程ID。
这篇关于如何获取Jenkins进程的PID和端口#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!