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 Coherence元件漏洞初探CVE-2020-2555Web元件
- weblogic 12 補丁安裝Web
- linux 安裝weblogic12.1.3.0LinuxWeb
- centos7安裝weblogic14CentOSWeb
- weblogic軟體安裝與配置部署大全Web
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- 如何命令級安裝weblogic11g叢集Web
- Oracle CoherenceOracle
- Liunx(CentOS7)中介軟體Weblogic的安裝與部署CentOSWeb
- Weblogic安裝實施學習筆記(自總結帶目錄)Web筆記
- Coherence Spring 3.1.0的釋出Spring
- 每日安全資訊:Weblogic 0day 漏洞正被攻擊者利用安裝勒索軟體Web
- Hacking weblogicWeb
- Weblogic日誌Web
- docker_weblogicDockerWeb
- weblogic配置httpsWebHTTP
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- BiocManager安裝,devtools安裝dev
- weblogic修改時區Web
- weblogic 漏洞復現Web
- 網頁轉換應用程式工具:Coherence X for Mac網頁Mac
- Linux安裝解除安裝MySQLLinuxMySql
- linux 安裝yum 安裝phpLinuxPHP
- Ubuntu解除安裝和安裝Ubuntu
- 02 安裝git、安裝TortoiseGitGit
- cocoapods安裝/解除安裝/使用
- JDK安裝和解除安裝JDK
- ffmpeg安裝之mac安裝Mac
- docker安裝及解除安裝Docker
- [ 安裝 ] Zeppelin安裝步驟!
- win10安裝版怎麼安裝_安裝版win10安裝教程Win10
- ElasticSearch的安裝和使用,Postman的安裝,Kibana的安裝,EShead外掛的安裝ElasticsearchPostman
- WebLogic - HTTP Session Subsystem MessagesWebHTTPSession
- weblogic常用命令Web
- weblogic ssrf漏洞復現Web
- Vulhub WebLogic漏洞復現Web
- Mac Redis安裝與解除安裝MacRedis
- 安裝了IDLE後安裝tensorflow
- kratos安裝及依賴安裝