windows下安装weblogic
weblogic算是老牌web服务器了,虽然目前是tomcat的天下。下载地址:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html。注意需要先登陆oracle账号才能下,包比较大,网络容易断,可以在网上找其他下载链接。
首先确保你已经安装了jdk,毕竟weblogic是oracle旗下的。以管理员身份打开命令行,进入本地jdk的安装目录,然后执行java命令:
C:\WINDOWS\system32>e: E:\>cd E:\wulf\Java\jdk1.8.0_131 E:\wulf\Java\jdk1.8.0_131>java -jar G:\download\fmw_12.1.3.0.0_wls.jar 启动程序日志文件为C:\Users\wulf\AppData\Local\Temp\OraInstall2018-03-31_03-38-36PM\launcher2018-03-31_03-38-36PM.log。 正在提取文件...................................................... 启动 Oracle Universal Installer 检查 CPU 速度是否大于 300 MHz。 实际为1796 通过 检查监视器: 必须配置为至少显示 256 种颜色。 实际为4294967296 通过 检查交换空间: 必须大于 512 MB 通过 检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位) 准备从C:\Users\wulf\AppData\Local\Temp\OraInstall2018-03-31_03-38-36PM启动 Oracle Universal Installer 日志:C:\Users\wulf\AppData\Local\Temp\OraInstall2018-03-31_03-38-36PM\install2018-03-31_03-38-36PM.log 可以在以下位置找到本次安装会话的日志: C:\Users\wulf\AppData\Local\Temp\OraInstall2018-03-31_03-38-36PM\install2018-03-31_03-38-36PM.log Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 日志已成功复制到C:\Program Files\Oracle\Inventory\logs。
走完上面流程后会弹出weblogic的安装导航界面,跟着提示按部就班走就可以了,过程会有点久,慢慢等就是了。我这里是安装到G盘了,装好后启动weblogic需要到这个目录下G:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain,双击startWebLogic图标,弹出启动窗口:
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m . CLASSPATH=E:\WULINF~1\Java\JDK18~1.0_1\lib\tools.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic_sp.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic.jar;G:\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\net.sf.antcontrib_1.1.0.0_1-0b3\lib\ant-contrib.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\modules\features\oracle.wls.common.nodemanager_2.0.0.0.jar;G:\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\com.oracle.cie.config-wls-online_8.1.0.0.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\common\derby\lib\derbyclient.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\common\derby\lib\derby.jar;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\xqrl.jar . PATH=;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\native\win\x64;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\bin;G:\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\org.apache.ant_1.9.2\bin;E:\WULINF~1\Java\JDK18~1.0_1\jre\bin;E:\WULINF~1\Java\JDK18~1.0_1\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WINDOW~1\v1.0\;C:\Windows\CCM;C:\Windows\CCM;C:\Windows\CCM;C:\Windows\CCM;C:\Windows\CCM;E:\WULINF~1\Java\JDK18~1.0_1\bin;E:\WULINF~1\APACHE~1.9\bin;E:\PROGRA~1\TORTOI~1\bin;E:\WULINF~1\tomcat\APACHE~1.16\bin;E:\PROGRA~1\PuTTY\;C:\Users\wulf\AppData\Local\MICROS~1\WINDOW~1;G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\native\win\x64\oci920_8 . *************************************************** * 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 weblogic with Java version: java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) Starting WLS with line: E:\WULINF~1\Java\JDK18~1.0_1\bin\java -server -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic.policy -Xverify:none -Djava.endorsed.dirs=E:\WULINF~1\Java\JDK18~1.0_1\jre\lib\endorsed;G:\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\endorsed -da -Dwls.home=G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server -Dweblogic.home=G:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server weblogic.Server Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 <2018-3-31 下午05时02分36秒 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.> <2018-3-31 下午05时02分37秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> <2018-3-31 下午05时02分40秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.131-b11 from Oracle Corporation.> <2018-3-31 下午05时02分44秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.3.0.0 Wed May 21 18:53:34 PDT 2014 1604337 > <2018-3-31 下午05时02分55秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> <2018-3-31 下午05时02分55秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> <2018-3-31 下午05时02分55秒 CST> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.> <2018-3-31 下午05时03分00秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file G:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.> <2018-3-31 下午05时03分17秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> <2018-3-31 下午05时03分35秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> <2018-3-31 下午05时03分36秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 三月 31, 2018 5:03:36 下午 weblogic.wsee.WseeCoreMessages logWseeServiceStarting 信息: 正在启动 Wsee 服务 <2018-3-31 下午05时03分37秒 CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> <2018-3-31 下午05时03分38秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> <2018-3-31 下午05时03分39秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> <2018-3-31 下午05时03分39秒 CST> <Warning> <Server> <BEA-002611> <The hostname "wulf01.home.langchao.com", maps to multiple IP addresses: 10.22.12.27, fe80:0:0:0:9c4:fc3f:89d5:46a%18, fe80:0:0:0:24ac:c9e:f5e9:f3e4%2, 2001:0:9d38:6ab8:24ac:c9e:f5e9:f3e4.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:5548:b265:ee21:e62b:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 2001:0:9d38:6ab8:24ac:c9e:f5e9:f3e4:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[7]" is now listening on fe80:0:0:0:9c4:fc3f:89d5:46a:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on fe80:0:0:0:4185:d1d:2605:1207:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.22.12.27:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on fe80:0:0:0:15b5:faef:e1c7:f5c7:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[9]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:29a1:9cf0:be14:fd20:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[8]" is now listening on fe80:0:0:0:0:5efe:a16:c1b:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[10]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:24ac:c9e:f5e9:f3e4:7001 for protocols iiop, t3, ldap, snmp, http.> <2018-3-31 下午05时03分39秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.> <2018-3-31 下午05时03分39秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> <2018-3-31 下午05时03分39秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>