资讯专栏INFORMATION COLUMN

Can't connect to X11 window server using 

printempw / 2619人阅读

摘要:项目在中启动正常,在环境下生成验证码图片时,报错分析原因,是下没有启动的图形渲染解决方案编辑文件,在其中加入然后立即生效一下配置文件

war项目在windows中启动正常,在linux环境下生成验证码图片时,报错:、

Can"t connect to X11 window server using "localhost:12.0" as the value of th

分析原因,是linux下没有启动java的图形渲染

解决方案:

编辑vi /etc/profile 文件,在其中加入

export JAVA_OPTS=-Djava.awt.headless=true

然后立即生效一下配置文件

source /etc/profile

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/74281.html

相关文章

  • mongodb: “invalid character ',' looking

    摘要:我以为是编码的问题,可能是下的编码有问题,因为有一个谈论这个问题的。其中遇到了也是的问题提到的这个做法很不错,使用这个参数确定位置。 从群里获取了一个超大的json(也就800M),需要导入mongodb,然后遇到了一个问题: $ mongoimport --db weibo --collection data --file test.json 2018-05-09T16:10:22....

    Edison 评论0 收藏0
  • mongodb: “invalid character ',' looking

    摘要:我以为是编码的问题,可能是下的编码有问题,因为有一个谈论这个问题的。其中遇到了也是的问题提到的这个做法很不错,使用这个参数确定位置。 从群里获取了一个超大的json(也就800M),需要导入mongodb,然后遇到了一个问题: $ mongoimport --db weibo --collection data --file test.json 2018-05-09T16:10:22....

    Faremax 评论0 收藏0
  • Useful APIs that you probably don't notice

    摘要:结果 Date Get the number of days in a month The 0th day of next month is the last day of the current month. function daysInMonth(year, month) { let date = new Date(year, month + 1, 0); ret...

    崔晓明 评论0 收藏0

发表评论

0条评论

printempw

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<