20
2020
07

Jenkins 在重启服务器后 访问不了 jenkins 已死,但 pid 文件存在

Jenkins 在重启服务器后 访问不了


/etc/rc.d/init.d/jenkins status
jenkins 已死,但 pid 文件存在


查找原因 是别的服务把8080端口占用了,是之前tomcat下的jsvc插件 kill掉即可。


解决办法:

1. lsof -i:8080

[root@VM_85_157_centos bin]# lsof -i:8080
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
jsvc    27123  www   52u  IPv4 3444920      0t0  TCP *:webcache (LISTEN)

2.杀掉进程相关进程

[root@VM_85_157_centos bin]# kill -9 27123
[root@VM_85_157_centos bin]# lsof -i:8080
[root@VM_85_157_centos bin]# lsof -i:8080
[root@VM_85_157_centos bin]# service jenkins restart 
Restarting jenkins (via systemctl):                        [  确定  ]
[root@VM_85_157_centos bin]# service jenkins status 
* jenkins.service - LSB: Jenkins Automation Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
   Active: active (running) since 五 2020-09-18 13:07:53 CST; 7s ago
......


启动成功后 放问Jenkins成功!



« 上一篇 下一篇 »