xhost + 不起作用怎么解决

       安装oracle数据库时,xhost + 不起作用的话,图形界面出不来。

       按如下方法解决:

 

[root@ddba02 ~]# vncserver

-bash: vncserver: command not found

 

 

[root@ddba02 ~]# rpm -qc tigervnc-server

package tigervnc-server is not installed

[root@ddba02 ~]# yum install tigervnc-server

Loaded plugins: security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tigervnc-server.i686 0:1.1.0

 

[root@ddba02 ~]#  rpm -qc tigervnc-server

/etc/sysconfig/vncservers

[root@ddba02 ~]# chkconfig --level 35 vncserver on

[root@ddba02 ~]#  vncserver

 

You will require a password to access your desktops.

 

Password:123321

Verify:

xauth:  creating new authority file /root/.Xauthority

 

New 'ddba02:1 (root)' desktop is ddba02:1

 

Creating default startup script /root/.vnc/xstartup

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ddba02:1.log

 

 

[root@ddba02 ~]# vncserver

 

New 'ddba02:2 (root)' desktop is ddba02:2

 

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ddba02:2.log

 

[root@ddba02 ~]# export DISPLAY=localhost:1

[root@ddba02 ~]#  xhost +

access control disabled, clients can connect from any host

[root@ddba02 ~]#

 

Logout root user

 

Logon on OS through grid user.

 

[grid@ddba02 grid]$ export DISPLAY=localhost:1

[grid@ddba02 grid]$ xhost +

access control disabled, clients can connect from any host

 

[grid@ddba02 grid]$ ./runInstaller

 

阅读更多

没有更多推荐了,返回首页