[root@localhost ~]# yum -y install tigervnc-server
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password: 输入密码,要6位以上
Verify:
New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
[root@localhost ~]# iptables -I INPUT 1 -p tcp –dport 5901 -j ACCEPT
启动VNCVIEWER IP:5901即可连接
ps -ef | grep oracle
kill -9 xxx
全部杀掉之后,咨询了下蒙哥,蒙哥给我这样的命令
1、DISPLAY
首先在oracle用户下面执行
export DISPLAY=192.168.1.14:1.0 (192.168.1.14是你服务器的ip地址)
我们来查看下刚才的设置
env|grep DIS
这是我们要切换到root用户,来执行
xhost +
显示access control disabled, clients can connect from any host
再次切换到Oralce用户,执行runInstaller命令,错误消失
完美解决问题,这样执行过后,vnc正常显示图形化安装界面
在这里多谢蒙哥指点