kaiser_cn 发表于 2019-1-26 14:09:27

linux系统解决xhost: unable to open display

  在linux操作系统安装oracle时,需要执行xhost+,执行xhost+报错:xhost: unable to open display。通过以下步骤解决~:
  第一步:用root登陆linux,启动vnc服务 vncserver :1;
  第二步:根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的);
  第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确



页: [1]
查看完整版本: linux系统解决xhost: unable to open display