weblogic算是老牌web服务器了,虽然目前是tomcat的天下。下载地址:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html。注意需要先登陆oracle账号才能下,包比较大,网络容易断,可以在网上找其他下载链接。
首先确保你已经安装了jdk,毕竟weblogic是oracle旗下的。以管理员身份打开命令行,进入本地jdk的安装目录,然后执行java命令:
C:WINDOWSsystem32>e: E:>cd E:wulinfengJavajdk1.8.0_131 E:wulinfengJavajdk1.8.0_131>java -jar G:downloadfmw_12.1.3.0.0_wls.jar 启动程序日志文件为C:UserswulfAppDataLocalTempOraInstall2018-03-31_03-38-36PMlauncher2018-03-31_03-38-36PM.log。 正在提取文件...................................................... 启动 Oracle Universal Installer 检查 CPU 速度是否大于 300 MHz。 实际为1796 通过 检查监视器: 必须配置为至少显示 256 种颜色。 实际为4294967296 通过 检查交换空间: 必须大于 512 MB 通过 检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位) 准备从C:UserswulfAppDataLocalTempOraInstall2018-03-31_03-38-36PM启动 Oracle Universal Installer 日志:C:UserswulfAppDataLocalTempOraInstall2018-03-31_03-38-36PMinstall2018-03-31_03-38-36PM.log 可以在以下位置找到本次安装会话的日志: C:UserswulfAppDataLocalTempOraInstall2018-03-31_03-38-36PMinstall2018-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 FilesOracleInventorylogs。
走完上面流程后会弹出weblogic的安装导航界面,跟着提示按部就班走就可以了,过程会有点久,慢慢等就是了。我这里是安装到G盘了,装好后启动weblogic需要到这个目录下G:OracleMiddlewareOracle_Homeuser_projectsdomainsase_domain,双击startWebLogic图标,弹出启动窗口:
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m . CLASSPATH=E:WULINF~1JavaJDK18~1.0_1lib ools.jar;G:OracleMIDDLE~1ORACLE~1wlserverserverlibweblogic_sp.jar;G:OracleMIDDLE~1ORACLE~1wlserverserverlibweblogic.jar;G:OracleMIDDLE~1ORACLE~1oracle_commonmodules et.sf.antcontrib_1.1.0.0_1-0b3libant-contrib.jar;G:OracleMIDDLE~1ORACLE~1wlservermodulesfeaturesoracle.wls.common.nodemanager_2.0.0.0.jar;G:OracleMIDDLE~1ORACLE~1oracle_commonmodulescom.oracle.cie.config-wls-online_8.1.0.0.jar;G:OracleMIDDLE~1ORACLE~1wlservercommonderbylibderbyclient.jar;G:OracleMIDDLE~1ORACLE~1wlservercommonderbylibderby.jar;G:OracleMIDDLE~1ORACLE~1wlserverserverlibxqrl.jar . PATH=;G:OracleMIDDLE~1ORACLE~1wlserverserver ativewinx64;G:OracleMIDDLE~1ORACLE~1wlserverserverin;G:OracleMIDDLE~1ORACLE~1oracle_commonmodulesorg.apache.ant_1.9.2in;E:WULINF~1JavaJDK18~1.0_1jrein;E:WULINF~1JavaJDK18~1.0_1in;C:WindowsSystem32;C:Windows;C:WindowsSystem32wbem;C:WindowsSystem32WINDOW~1v1.0;C:WindowsCCM;C:WindowsCCM;C:WindowsCCM;C:WindowsCCM;C:WindowsCCM;E:WULINF~1JavaJDK18~1.0_1in;E:WULINF~1APACHE~1.9in;E:PROGRA~1TORTOI~1in;E:WULINF~1 omcatAPACHE~1.16in;E:PROGRA~1PuTTY;C:UserswulfAppDataLocalMICROS~1WINDOW~1;G:OracleMIDDLE~1ORACLE~1wlserverserver ativewinx64oci920_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:portconsole * *************************************************** 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~1JavaJDK18~1.0_1injava -server -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=G:OracleMIDDLE~1ORACLE~1wlserverserverlibweblogic.policy -Xverify:none -Djava.endorsed.dirs=E:WULINF~1JavaJDK18~1.0_1jrelibendorsed;G:OracleMIDDLE~1ORACLE~1oracle_commonmodulesendorsed -da -Dwls.home=G:OracleMIDDLE~1ORACLE~1wlserverserver -Dweblogic.home=G:OracleMIDDLE~1ORACLE~1wlserverserver 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:OracleMiddlewareOracle_Homeuser_projectsdomainsase_domainserversAdminServerlogsAdminServer.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.>