mac配置 WebLogic Server 12c (12.2.1.4)

1.下載weblogic

首先下載weblogic
weblogic下載地址
我下載的是第一個
weblogic下載
下載好後解壓打開是這樣子滴
下載好後解壓的文件

2.配置JAVA_HOME

進入到mac的jdk路徑
cd /Library/Java/JavaVirtualMachines
JDK的真實路徑是:/Library/Java/JavaVirtualMachines/jdk版本號.jdk/Contents/Home
然後使用vim編輯.bash_profile文件
vim ~/.bash_profile
然後輸入i,在vim中輸入, i是開始編輯的意思
編輯內容如下:

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk版本號.jdk/Contents/Home
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH

退出vim
按esc
保存退出
輸入:wq
使環境變量生效:
source .bash_profile

3. 開始安裝

使用 java -jar 文件 命令安裝

yzChendeMacBook-Air:~ yzchen$ java -jar /Users/yzchen/Downloads/fmw_12.2.1.4.0_wls_quick_Disk1_1of1/fmw_12.2.1.4.0_wls_quick.jar 
啓動程序日誌文件爲/private/var/folders/_w/_62wz17d3zq1lwsv8cbrgrpm0000gn/T/OraInstall2019-10-13_08-12-46PM/launcher2019-10-13_08-12-46PM.log。
正在提取安裝程序... . . 完成
檢查 CPU 速度是否大於 300 MHz。   實際爲 1638.4 MHz    通過
檢查交換空間: 必須大於 512 MB。   實際爲 106002 MB    通過
檢查此平臺是否需要 64 位 JVM。   實際爲64    通過
檢查臨時空間: 必須大於 300 MB。   實際爲 106002 MB    通過
準備從/private/var/folders/_w/_62wz17d3zq1lwsv8cbrgrpm0000gn/T/OraInstall2019-10-13_08-12-46PM啓動 Oracle Universal Installer
日誌:/private/var/folders/_w/_62wz17d3zq1lwsv8cbrgrpm0000gn/T/OraInstall2019-10-13_08-12-46PM/install2019-10-13_08-12-46PM.log

*****************************************************


分發名稱: Oracle Fusion Middleware 12c WebLogic 和 Coherence Developer
分發版本: 12.2.1.4.0

Oracle 清單: /Users/yzchen/oraInventory

Oracle 主目錄: /Users/yzchen/wls12214
Java 主目錄: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

注: 未提供 Oracle 主目錄 (默認爲 <present working dir>/wls12214)

*****************************************************

版權所有 (c) 1996, 2019, Oracle 和/或其關聯公司。保留所有權利。
跳過軟件更新
已啓用此會話的驗證。
正在驗證數據
複製文件
完成百分比: 10
完成百分比: 20
完成百分比: 30
完成百分比: 40
完成百分比: 50
完成百分比: 60
完成百分比: 70
完成百分比: 80
完成百分比: 90
完成百分比: 100

Oracle Fusion Middleware 12c WebLogic 和 Coherence Developer 12.2.1.4.0 的 安裝 已成功完成。
日誌已成功複製到/Users/yzchen/wls12214/cfgtoollogs/oui。

4. 配置weblogic

進入/Users/yzchen/wls12214/oracle_common/common/bin
輸入 ./config.sh
出現如圖所示配置嚮導
配置嚮導
一直下一步就好
最後出現如圖所示界面
配置完成
進入/Users/yzchen/wls12214/user_projects/domains/java_domain
輸入 ./startWebLogic.sh

yzChendeMacBook-Air:java_domain yzchen$ ./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000
.
CLASSPATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/tools.jar:/Users/yzchen/wls12214/wlserver/server/lib/weblogic.jar:/Users/yzchen/wls12214/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/Users/yzchen/wls12214/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/Users/yzchen/wls12214/wlserver/common/derby/lib/derbynet.jar:/Users/yzchen/wls12214/wlserver/common/derby/lib/derbyclient.jar:/Users/yzchen/wls12214/wlserver/common/derby/lib/derby.jar:.:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/tools.jar
.
PATH=/Users/yzchen/wls12214/user_projects/domains/java_domain/bin:/Users/yzchen/wls12214/wlserver/server/bin:/Users/yzchen/wls12214/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/mysql/bin:/usr/local/mysql/bin:
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
Starting WLS with line:
/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java -server   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -cp /Users/yzchen/wls12214/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/yzchen/wls12214/wlserver/server/lib/weblogic.policy  -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader  -javaagent:/Users/yzchen/wls12214/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/Users/yzchen/wls12214/wlserver/server -Dweblogic.home=/Users/yzchen/wls12214/wlserver/server      weblogic.Server
<2019-10-13 下午09時01分09秒 CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.> 
<2019-10-13 下午09時01分09秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> 
<2019-10-13 下午09時01分11秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.181-b13 from Oracle Corporation.> 
<2019-10-13 下午09時01分11秒 CST> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.> 
<2019-10-13 下午09時01分11秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621> 
<2019-10-13 下午09時01分13秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<2019-10-13 下午09時01分13秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 
<2019-10-13 下午09時01分13秒 CST> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.> 
<2019-10-13 下午09時01分14,547秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=1676089739
Current log file=/Users/yzchen/wls12214/user_projects/domains/java_domain/servers/AdminServer/logs/AdminServer.log
Rotation dir=/Users/yzchen/wls12214/user_projects/domains/java_domain/servers/AdminServer/logs
 is opened. All server side log events will be written to this file.> 
<2019-10-13 下午09時01分14,795秒 CST> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm> 
<2019-10-13 下午09時01分16,013秒 CST> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm> 
<2019-10-13 下午09時01分17,848秒 CST> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm> 
<2019-10-13 下午09時01分18,524秒 CST> <Warning> <Store> <BEA-280109> <The JVM was unable to load the native wlfileio library for the store "_WLS_AdminServer". File and paging stores will continue to function correctly. Specifically, file stores that are configured with a transactionally safe synchronous write policy will continue to operate safely and transactionally but may open with a different write-policy. Other store types may not be able to open.> 
<2019-10-13 下午09時01分18,644秒 CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://127.0.0.1:7001/jndi/weblogic.management.mbeanservers.runtime.> 
<2019-10-13 下午09時01分19,000秒 CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://127.0.0.1:7001/jndi/weblogic.management.mbeanservers.domainruntime.> 
<2019-10-13 下午09時01分19,139秒 CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://127.0.0.1:7001/jndi/weblogic.management.mbeanservers.edit.> 
<2019-10-13 下午09時01分20,749秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> 
<2019-10-13 下午09時01分20,750秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<2019-10-13 下午09時01分20,833秒 CST> <Notice> <Log Management> <BEA-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.> 
<2019-10-13 下午09時01分21,186秒 CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> 
<2019-10-13 下午09時01分21,384秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 
<2019-10-13 下午09時01分21,479秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 
<2019-10-13 下午09時01分21,561秒 CST> <Warning> <Server> <BEA-002611> <The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1.> 
<2019-10-13 下午09時01分21,566秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,567秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 172.16.229.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,568秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1%lo0:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,569秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 172.21.16.32:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,570秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.18.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,570秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "java_domain" running in development mode.> 
<2019-10-13 下午09時01分21,570秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,571秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 172.16.229.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,571秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1%lo0:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,572秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 172.21.16.32:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,572秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.18.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2019-10-13 下午09時01分21,576秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> 
<2019-10-13 下午09時01分21,588秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 
2019-10-13 21:01:25.154/17.547 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational configuration from "jar:file:/Users/yzchen/wls12214/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2019-10-13 21:01:25.256/17.648 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational overrides from "jar:file:/Users/yzchen/wls12214/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2019-10-13 21:01:25.265/17.656 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2019-10-13 21:01:25.275/17.666 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "cache-factory-config.xml" is not specified
2019-10-13 21:01:25.288/17.679 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "cache-factory-builder-config.xml" is not specified
2019-10-13 21:01:25.294/17.685 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

Oracle Coherence Version 12.2.1.4.0 Build 74888
 Grid Edition: Development mode
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

2019-10-13 21:01:25.405/17.796 Oracle Coherence GE 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Configured versioned, multi-cluster Management over ReST

<2019-10-13 下午09時03分24,687秒 CST> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Initializing callbacks> 
<2019-10-13 下午09時03分24,691秒 CST> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Added MBeanServerConnection in DomainRuntimeServiceMBean > 
<2019-10-13 下午09時03分24,691秒 CST> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Callback is done> 
<2019-10-13 下午09時03分24,695秒 CST> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Connection already exists for the server. Did not attempt to connect to the server> 
<2019-10-13 下午09時03分27,393秒 CST> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=All Servers : Resolving connection list DomainRuntimeServiceMBean> 

然後在瀏覽器中輸入
http://localhost:7001/console
即可進入該頁面
weblogic頁面
輸入之前配置時註冊的登錄名密碼,即可進入主界面
主界面

教程結束

參考鏈接:https://blog.csdn.net/cc278463952/article/details/76850397

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章