以普通用户登录 su root 用vncviewer:xxxxx 会报错!!exit 回到最初环境变的用户 问题解决!!!!

时间:2022-05-24 14:28:02
[root@ok IT-DOC]# vncviewer :

TigerVNC Viewer for X version 1.1. - built May   ::
Copyright (C) - TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
No protocol specified
vncviewer: unable to open display ":0.0"
[root@ok IT-DOC]# exit
exit
[ok@ok IT-DOC]$ vncviewer : TigerVNC Viewer for X version 1.1. - built May ::
Copyright (C) - TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC. Fri Sep ::
CConn: connected to host localhost port
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
TXImage: Using default colormap and visual, TrueColor, depth .
CConn: Using pixel format depth (32bpp) little-endian rgb888
CConn: Using Tight encoding

问题解决