centos 打包报错Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

参考:

https://blog.csdn.net/salonzhou/article/details/8990237
https://stackoverflow.com/questions/23358664/error-can-t-connect-to-x11-window-server-using-localhost10-0-as-the-values

我直接设置unset DISPLAY就解决问题了。

原文地址:https://www.cnblogs.com/zndxall/p/9274202.html