启动命令中增加java虚拟机参数: # Initialize the common environment. JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.awt.headless=true"