在安裝WebLogic或者Oracle時需要用到圖形界面,比如WebLogic 11g(10.3.6),默認使用命令行方式安裝:
如果需要使用圖形界面方式安裝,可執行如下操作:
1、關閉本地Windows服務器防火牆,保證Windows能與CentOS 6.10互相ping通
2、本地Windows啓動Xmanager Enterprise 5中的Xmanager - Passive,啓動後會自動在右下角托盤處出現圖標
3、配置CentOS 6.10:
(1)安裝測試軟件包:# yum -y install xclock
(2)安裝桌面環境:# yum -y groupinstall "Desktop"
(3)啓用圖形界面:# vim /etc/inittab --> id:5:initdefault:
(4)重啓服務器:# reboot
備註:如果出現如下提示,可以執行# logout命令後重新登錄終端
(5)配置DISPLAY環境變量:
# export DISPLAY=:0
# xhost + --> access control disabled, clients can connect from any host
# su - weblogic
$ export DISPLAY=192.168.1.251:0.0 //192.168.1.251爲本地Windows服務器的IP地址
4、測試圖形化界面:
$ xclock
$ java -jar wls1036_generic.jar