jdk安裝配置,注意weblogic版本需要的jdk版本是否匹配
下載weblogic安裝包,下載地址
https://www.oracle.com/middleware/technologies/weblogic-server-downloads.html
一般下載generic版本,復制到虛擬上
新建組和用戶weblogic
groupadd weblogic
useradd -m weblogic -g weblogic
切換到weblogic用戶下:運行weblogic安裝包:
- 將安裝移動到 weblogic home用戶下
mv fmw_12.2.1.4.0_wls.jar /home/weblogic/
chown weblogic:weblogic fmw_12.2.1.4.0_wls.jar
chmod 755 fmw_12.2.1.4.0_wls.jar
su weblogic
java -jar fmw_12.2.1.4.0_wls.jar
出現報錯信息
weblogic@localhost:~> java -jar fmw_12.2.1.4.0_wls.jar
Launcher log file is /tmp/OraInstall2019-10-12_08-52-48PM/launcher2019-10-12_08-52-48PM.log.
Extracting the installer . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2904.003 MHz Passed
Checking monitor: must be configured to display at least 256 colors. Actual unknown. Failed <<<<
Checking swap space: must be greater than 512 MB. Actual 2053 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Checking temp space: must be greater than 300 MB. Actual 20233 MB Passed
Some system prerequisite checks failed.
You must fulfill these requirements before continuing.
Continue? (yes [y] / no [n]) [n]
You have confirmed that the product cannot be installed on this platform.
Quitting the installation.
The log is located here: /tmp/OraInstall2019-10-12_08-52-48PM/launcher2019-10-12_08-52-48PM.log.
這種方法不能用
默認是圖像界面安裝對的,使用參數-mode=console使用控制台模式安裝,或者進入xwindow進行安裝也可以
采用下面這種方法快速解決
- 給weblogic用戶加入密碼
passwd weblogic
然后Xwindows切換到weblgic用戶登陸
執行java -jar fmw_12.2.1.4.0_wls.jar 可以正常安裝
安裝完成一般會彈出配置域的安裝向導,如果沒有彈出來也不用着急,
找到 weblogicHome/Oracle_common/common/bin/config.sh 即可彈出向導界面
我的weblogic12 路徑是:
配置口令默認是8位,必須包含一個數字或者特殊字符:12345678可通過