mac安裝weblogic 12

從前臺日後臺轉,不知道如何有效率的上手後臺的東西,只能見一個問題解決一個問題了,先從服務器開始吧.html

網上的童鞋們大都沒有使用新出的weblogic12,我下了這個最新的,研究試試吧.java

官網下載地址:http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.htmlnode

我下載的那個zip的包,zip for windows x86,Linux x86,Mac OS X(182MB).git

起先不知道12和之前的版本差別大,上網上找各類weblogic的安裝資料,結果都對不上號,沒辦法看官網英文文檔,說是12的安裝方式都變了,額,本身摸索試試吧.web

weblogic12的主目錄下有個config.sh和config.cmd,天然mac運行sh的.apache

輸入命令 ./config.shwindows

結果提示沒有設置JAVA_HOME,無奈,解決問題,在.base_profile文件中設置環境變量.服務器

ok後,從新輸入命令,weblogic開始安裝.oracle

 

haiwangtekiMacBook-Air:wls12120 haiwang$ ./configure.sh dom

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

WebLogic Server 12g (12.1.2.0) Zip Configuration

 

MW_HOME:   /Users/haiwang/Programe/Weblogic/wls12120

JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

 

Note:      MW_HOME not supplied, default used

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

等待它一路解壓文件,

 

Please wait while      745 jars are unpacked ...

Unpacking coherence-hibernate.jar                                               Unpacking coherence-loadbalancer.jar                                            Unpacking coherence-mock.jar                                                    Unpacking coherence-rest.jar          

成功後

 

BUILD SUCCESSFUL

Total time: 0 seconds

CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/weblogic_sp.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/weblogic.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/webservices.jar:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/modules/features/oracle.wls.common.nodemanager_1.0.0.0.jar:

 

PATH=/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/bin:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.ant_1.7.1/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/Users/haiwang/Programe/Gradle/gradle-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.maven_3.0.4/bin

 

Your environment has been set.

 

貌似它本身設置了環境變量.

 

Configuring WLS...

 

BUILD SUCCESSFUL

Total time: 0 seconds

 

Do you want to configure a new domain?  [y/n]? 

 

輸入y,建立新的域

輸入username和password,結果報錯了,shit.

 

<2014-2-24 ????09ʱ31??23?? CST> <Info> <Management> <BEA-141254> <Generating new domain directory in /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain.> 

<2014-2-24 ????09ʱ31??23?? CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: 

 

There are 1 nested errors:

 

weblogic.management.ManagementException: Failure during domain creation

at weblogic.management.internal.DomainGenerator.generateDefaultDomain(DomainGenerator.java:119)

at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:82)

at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)

at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)

at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:895)

at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:572)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:471)

at weblogic.Server.main(Server.java:74)

Caused by: com.oracle.cie.domain.security.InvalidPasswordException: 60455: ??????Ч??

60455: ???????ٱ???Ϊ 8 ????ĸ?????ַ?, ?????ٰ???һ?????ֻ?һ???????ַ???

60455: ???????

at com.oracle.cie.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:763)

at com.oracle.cie.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:707)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at weblogic.management.internal.CIEDomainGenerator.generateDefaultDomain(CIEDomainGenerator.java:62)

at weblogic.management.internal.DomainGenerator.generateDefaultDomain(DomainGenerator.java:114)

... 7 more

 

<2014-2-24 ????09ʱ31??23?? CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> 

<2014-2-24 ????09ʱ31??23?? CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> 

<2014-2-24 ????09ʱ31??23?? CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> 

haiwangtekiMacBook-Air:wls12120 haiwang$ 

媽的,這讓老夫如何是好.

看錯誤信息,是建立域失敗,密碼不行,額,個人控制檯是UTF-8編碼的,我輸入的是123qwe,123123也作了嘗試,都是密碼不行.

將控制檯字符編碼改成無損ASII,

 

Do you want to configure a new domain?  [y/n]? y

Enter username to boot WebLogic server:haiwang

Enter password to boot WebLogic server:

For confirmation, please re-enter password required to boot WebLogic server:

haiwangtekiMacBook-Air:wls12120 haiwang$ 

 

貌似沒出錯,可是這就沒了??

個人user_projects的domain裏面並無啓動weblogic的命令文件啊.

草,我再試試其餘字符編碼,GBK,這回不錯,日期都顯示中文了,

 

Do you want to configure a new domain?  [y/n]? y

<2014-2-24 下午10時07分32秒 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.> 

<2014-2-24 下午10時07分32秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> 

<2014-2-24 下午10時07分32秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.65-b04-462 from Apple Inc..> 

<2014-2-24 下午10時07分33秒 CST> <Info> <Management> <BEA-140013> </Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain/config not found> 

<2014-2-24 下午10時07分33秒 CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.> 

Enter username to boot WebLogic server:haiwang

Enter password to boot WebLogic server:

For confirmation, please re-enter password required to boot WebLogic server:

<2014-2-24 下午10時07分48秒 CST> <Info> <Management> <BEA-141254> <Generating new domain directory in /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain.> 

<2014-2-24 下午10時07分56秒 CST> <Info> <Management> <BEA-141255> <Domain generation completed in 7,712 milliseconds.> 

<2014-2-24 下午10時07分56秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.2.0.0  Fri Jun 7 15:16:15 PDT 2013 1530982 WLS_12.1.2.0.0_GENERIC_130607.1100> 

<2014-2-24 下午10時07分57秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 

<2014-2-24 下午10時07分57秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 

<2014-2-24 下午10時07分57秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain/servers/myserver/logs/myserver.log is opened. All server side log events will be written to this file.> 

<2014-2-24 下午10時08分00秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 

<2014-2-24 下午10時08分00秒 CST> <Warning> <Store> <BEA-280109> <Unable to load the native wlfileio library for the persistent file store "_WLS_myserver". The store will use buffered I/O. The store is still operating in a transactionally safe synchronous mode. See store open log messages for the requested and final write policies.> 

<2014-2-24 下午10時08分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> 

<2014-2-24 下午10時08分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 

<2014-2-24 下午10時08分02秒 CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 

<2014-2-24 下午10時08分03秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[2]". The address fe80:0:0:0:0:0:0:1%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10時08分03秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:9afe:94ff:fe48:b170%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address> 

<2014-2-24 下午10時08分03秒 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, fe80:0:0:0:0:0:0:1%1.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.108:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 

<2014-2-24 下午10時08分03秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> 

哈哈,原來是字符集的事情,並且密碼還得字母數字都有,很多於8位,哎,一夜沒白弄,出來了.

這下個人mydomain文件夾下面有不少文件了,startWebLogic.sh也出來了,ok了.

http://localhost:7001/console,進去了

home頁

哎,終於弄出來了.帳號haiwang,密碼1234qwer.記錄下.能夠睡覺了.

之後的控制檯還得設置稱gbk的編碼格式,幸虧mac上的控制檯有不少種,能夠設置.

相關文章
相關標籤/搜索