Linux下启动jenkins报错问题解决

jenkins端口报错

bash 复制代码
java.io.IOException: Failed to start Jetty
	at winstone.Launcher.<init>(Launcher.java:209)
	at winstone.Launcher.main(Launcher.java:496)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at executable.Main.main(Main.java:351)
Caused by: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:304)
	at org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:402)

更换端口运行启动jenkins

bash 复制代码
./jenkins start --httpPort=8088

还是出现报错

bash 复制代码
WARNING	hudson.model.UpdateCenter#updateDefaultSite: Upgrading 

解决方法

1.查询宿主主机防火墙NAT转发情况:firewall-cmd --query-masquerade

2.开启NAT转发: firewall-cmd --zone=public --add-masquerade --permanent

3.重启防火墙: firewall-cmd --reload

如果使用命令出现 FirewallD is not running 问题 :

1.查看firewalld状态:systemctl status firewalld,如果是dead状态,即防火墙未开启。

2.开启防火墙:systemctl start firewalld

3.确认firewalld状态:systemctl status firewalld

(根据需求是否关闭防火墙)关闭防火墙:systemctl stop firewalld

再次启动

bash 复制代码
./jenkins start --httpPort=8088

输入IP及端口可正常启动jenkins

相关推荐
诸神缄默不语16 分钟前
Linux shell脚本教程
linux·bash·shell·sh
小熊officer18 分钟前
Debian与Linux与Ubuntu的关系
linux
feng_you_ying_li20 分钟前
liunx之信号量与进程信号的基本介绍(1)
linux
2401_8734794025 分钟前
如何判断用户IP是否在商圈内?用IP地址查询定位实现LBS精准推送
linux·运维·服务器
平行云32 分钟前
实时云渲染预启动技术解析:UE数字孪生应用的延迟优化机制(一)
linux·ue5·webgl·数字孪生·云渲染·实时云渲染·像素流
都在酒里44 分钟前
Linux字符设备驱动开发(三):引入并发控制——使用mutex保护共享数据
linux·运维·驱动开发
慵懒的猫mi1 小时前
从 Windows 到 deepin:Electron 软件无损移植实战
linux·windows·deepin
坤昱1 小时前
cfs调度类深入解刨——最新内核细节分析1
linux·cfs·cfs调度·linux 7.1·eevdf·核心调度结构·linux最新调度分析
MC皮蛋侠客1 小时前
Perf 火焰图深度实战:CPU 性能分析与异常排查完全指南
linux·c++·性能分析·perf·火焰图
maosheng11461 小时前
NFS服务器的搭建有多种类型linux-linux
linux·运维·服务器