1.下载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
即可进入该页面
输入之前配置时注册的登录名密码,即可进入主界面
教程结束
参考链接:https://blog.youkuaiyun.com/cc278463952/article/details/76850397