weblogic coherence安裝
1:檢視系統java環境
java -version
openjdk不支援,所以要改成安裝sunjdk,下載sunjdk安裝包(jdk-7u45-linux-x64.rpm)
2:安裝sunjdk安裝包
[root@oracle ~]# rpm -ivh jdk-7u45-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
jfxrt.jar...
檢視安裝路徑,預設安裝路徑
/usr/java/jdk1.7.0_45
3:配置環境變數
root使用者
[root@oracle ~]# vi /etc/profile
將下面變數新增到最下面
JAVA_HOME=/usr/java/jdk1.7.0_45
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
使新增的變數立即生效
[root@oracle ~]# source /etc/profile
建立oracle使用者組
建立使用者,輸入命令:
groupadd oinstall
groupadd dba
建立Oracle使用者和密碼,輸入命令:
useradd -g oinstall -g dba -m oracle
passwd oracle
然後會讓你輸入密碼,密碼任意輸入2次,但必須保持一致,回車確認
切換到oracle使用者下,配置環境變數
[oracle@oracle ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
JAVA_HOME=/usr/java/jdk1.7.0_45
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
使之變數立即生效
[oracle@oracle ~]$ source .bash_profile
4:檢視當前java版本
[oracle@oracle ~]$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
顯示為sunjdk模式。
5:安裝weblogic和coherence
weblogic和coherence 下載地址:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
oracle使用者下
[oracle@oracle ~]$ java -jar wls_121200.jar
安裝過程中,選擇完全安裝。
安裝完成以後,執行./startWeblogic.sh指令碼
[oracle@oracle ~]$ cd /home/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server/bin/
[oracle@oracle bin]$ ./startWebLogic.sh
如果啟動過程中報如下錯誤:
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:39)
at weblogic.utils.net.AddressUtils$AddressMaker.(AddressUtils.java:34)
at weblogic.utils.net.AddressUtils.getIPForLocalHost(AddressUtils.java:207)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:236)
at weblogic.rjvm.RJVMService.setJVMID(RJVMService.java:50)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: oracle: oracle: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:37)
at weblogic.utils.net.AddressUtils$AddressMaker.(AddressUtils.java:34)
at weblogic.utils.net.AddressUtils.getIPForLocalHost(AddressUtils.java:207)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:236)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: oracle: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:37)
Truncated. see log file for complete stacktrace
>
***************************************************************************
The WebLogic Server encountered a critical failure
Reason: Assertion violated
***************************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class weblogic.protocol.ServerIdentityManager$Initializer
at weblogic.protocol.ServerIdentityManager.findServerIdentity(ServerIdentityManager.java:66)
at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:174)
at weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote(ServerLifeCycleRuntime.java:1124)
at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer(ServerRuntime.java:432)
at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:418)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:208)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:484)
at weblogic.Server.main(Server.java:74)
那麼
修改/etc/hosts檔案
[root@oracle ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
改成如下模式
127.0.0.1 oracle localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
重新啟動:
[oracle@oracle bin]$ ./startWebLogic.sh
登陸 weblogic :http://localhost:7001
java -version
openjdk不支援,所以要改成安裝sunjdk,下載sunjdk安裝包(jdk-7u45-linux-x64.rpm)
2:安裝sunjdk安裝包
[root@oracle ~]# rpm -ivh jdk-7u45-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
jfxrt.jar...
檢視安裝路徑,預設安裝路徑
/usr/java/jdk1.7.0_45
3:配置環境變數
root使用者
[root@oracle ~]# vi /etc/profile
將下面變數新增到最下面
JAVA_HOME=/usr/java/jdk1.7.0_45
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
使新增的變數立即生效
[root@oracle ~]# source /etc/profile
建立oracle使用者組
建立使用者,輸入命令:
groupadd oinstall
groupadd dba
建立Oracle使用者和密碼,輸入命令:
useradd -g oinstall -g dba -m oracle
passwd oracle
然後會讓你輸入密碼,密碼任意輸入2次,但必須保持一致,回車確認
切換到oracle使用者下,配置環境變數
[oracle@oracle ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
JAVA_HOME=/usr/java/jdk1.7.0_45
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
使之變數立即生效
[oracle@oracle ~]$ source .bash_profile
4:檢視當前java版本
[oracle@oracle ~]$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
顯示為sunjdk模式。
5:安裝weblogic和coherence
weblogic和coherence 下載地址:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
oracle使用者下
[oracle@oracle ~]$ java -jar wls_121200.jar
安裝過程中,選擇完全安裝。
安裝完成以後,執行./startWeblogic.sh指令碼
[oracle@oracle ~]$ cd /home/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server/bin/
[oracle@oracle bin]$ ./startWebLogic.sh
如果啟動過程中報如下錯誤:
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:39)
at weblogic.utils.net.AddressUtils$AddressMaker.
at weblogic.utils.net.AddressUtils.getIPForLocalHost(AddressUtils.java:207)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:236)
at weblogic.rjvm.RJVMService.setJVMID(RJVMService.java:50)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: oracle: oracle: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:37)
at weblogic.utils.net.AddressUtils$AddressMaker.
at weblogic.utils.net.AddressUtils.getIPForLocalHost(AddressUtils.java:207)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:236)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: oracle: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
at weblogic.utils.net.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:37)
Truncated. see log file for complete stacktrace
>
***************************************************************************
The WebLogic Server encountered a critical failure
Reason: Assertion violated
***************************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class weblogic.protocol.ServerIdentityManager$Initializer
at weblogic.protocol.ServerIdentityManager.findServerIdentity(ServerIdentityManager.java:66)
at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:174)
at weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote(ServerLifeCycleRuntime.java:1124)
at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer(ServerRuntime.java:432)
at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:418)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:208)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:484)
at weblogic.Server.main(Server.java:74)
那麼
修改/etc/hosts檔案
[root@oracle ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
改成如下模式
127.0.0.1 oracle localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
重新啟動:
[oracle@oracle bin]$ ./startWebLogic.sh
登陸 weblogic :http://localhost:7001
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28698327/viewspace-777214/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Weblogic】Weblogic安裝以及域配置Web
- 安裝weblogic步驟Web
- Weblogic Coherence元件漏洞初探CVE-2020-2555Web元件
- weblogic 12 補丁安裝Web
- 轉linux部署安裝weblogicLinuxWeb
- oracle weblogic安裝介質地址OracleWeb
- Linux下解除安裝WeblogicLinuxWeb
- 查weblogic所安裝的版本Web
- WebLogic的安裝和配置(轉)Web
- Oracle CoherenceOracle
- windows下安裝weblogic開發版WindowsWeb
- weblogic安裝注意事項_linuxWebLinux
- WebLogic10安裝圖文教程Web
- Weblogic和eclipse安裝和配置WebEclipse
- weblogic在LINUX上的安裝WebLinux
- weblogic軟體安裝與配置部署大全Web
- 在cento5.4上安裝weblogic 8.1Web
- weblogic+ofbiz安裝配置問題?Web
- 如何命令級安裝weblogic11g叢集Web
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- weblogic 管理視訊1-安裝和初步使用Web
- Linux上安裝JDeveloper版Weblogic server 10.3LinuxDeveloperWebServer
- weblogic中介軟體安裝與部署一些文章Web
- weblogic12C 的靜默安裝以及建立域Web
- weblogic10.3 linux上的簡單安裝WebLinux
- Liunx(CentOS7)中介軟體Weblogic的安裝與部署CentOSWeb
- Linux應用伺服器搭建手冊——weblogic安裝Linux伺服器Web
- 如何解除安裝redhat 5.4上面的weblogic 12cRedhatWeb
- zt_weblogic在linux上的安裝_中介軟體WebLinux
- oracle weblogic安裝介質media下載download網址websiteOracleWeb
- Coherence Spring 3.1.0的釋出Spring
- Weblogic安裝實施學習筆記(自總結帶目錄)Web筆記
- 在HP-UX PA-RISC 11.31安裝weblogic報錯解決UXWeb
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- JBuilder9+Weblogic7實戰篇之工具篇(ORACLE9i安裝) (轉)UIWebOracle
- 每日安全資訊:Weblogic 0day 漏洞正被攻擊者利用安裝勒索軟體Web
- 網頁轉換應用程式工具:Coherence X for Mac網頁Mac
- 安裝npm 解除安裝npm 安裝apidocNPMAPI