出现错误提示:“Xlib: connection to ":1.0" refused by server”
如下处理:
实用技巧:在Linux下设置xhost方法步骤
- [root@localhost
~]# vncserver -
- New
'localhost:1 (root)' desktop is localhost:1 -
- Starting
applications specified in /root/.vnc/xstartup - Log
file is /root/.vnc/localhost:1.log -
- [root@localhost
~]# export DISPLAY=localhost:1 - [root@localhost
~]# xhost - access
control disabled, clients can connect from any host