Linux启动应用(比如jmeter)报An error occurred: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Linux启动应用(比如jmeter)报An error occurred: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

解决方案:

其实很简单,你应用部署在哪个用户下,那么你登录图形化界面的用户必须与其相同

如果你部署应用在  ***  用户下面,但是你登录的图形化界面用户是root用户,然后你 su -   *** 切换到该用户下是没有用的

必须退出该root用户,直接登录*** 用户,然后重新启动就OK啦

我的是这样解决的,如果有其他方法或者见解欢迎随时评论~~~~~~

posted on 2018-04-01 10:20  内心独白  阅读(5366)  评论(0编辑  收藏  举报