ssh -X前设置DISPLAY=localhost:0
时间:2017-09-10 10:58:57
收藏:0
阅读:721
如果是在windows上用XMing做XServer,前面的localhost不能省,否则会被当作一个unix domain socket,而XMing没有实现这个功能,所以会出错
connect /tmp/.X11-unix/X0: No such file or directory
Error: Can‘t open display: localhost:10.0
而指定localhost:0就会明确使用tcp socket了。
原文:http://www.cnblogs.com/wellbye/p/7500189.html
评论(0)