访问【Jenkins】报错:AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"?

问题描述:

1. 界面访问jenkins,报错:

AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? See also: https://www.jenkins.io/redirect/troubleshooting/java.awt.headless

image

分析和解决

OpenJDK对某一些组件类似上面的字体组件不是必要包含,需要用户自主选择安装配置。

2、解决办法

执行命令:yum install fontconfig ttf-dejavu

重启jenkins:systemctl restart jenkins.service

3、重新访问正常:

image

 

posted @ 2025-08-27 15:42  LuoTengteng  阅读(8)  评论(0)    收藏  举报