您好,登錄后才能下訂單哦!
weblogic是bea公司的產(chǎn)品,后來被oracle收購,weblogic是基于Javaee架構的中間件,是純java開發(fā)的java應用服務器。WebLogic主要用于開發(fā)、集成、部署和管理大型分布式Web應用、網(wǎng)絡應用和數(shù)據(jù)庫應用的Java應用服務器。
weblogic_server103.下載鏈接:http://pan.baidu.com/s/1c6uSgQ 密碼:4lk4
weblogic下載要去oracle官網(wǎng)注冊下載,可能還需要付費,博主免費提供下載,下面就是weblogic的安裝配置
weblogic的安裝也是非常簡單的:
首先安裝下webogic缺省的lib庫文件和gcc這些編譯環(huán)境:
:/root>yum install gcc make glibc.i686
安裝weblogic:
(博主習慣將應用安裝在相應的項目維護用戶目錄下,這個需要userad oweblogic)
:/root>su - weblogic
本章博主使用的是 weblogic_server103_linux32.bin版本的weblogic,也就是控制臺是英文的,12c是中文的
[weblogic@smallmeng ~]$ ./weblogic_server103_linux32.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Welcome:
--------
This installer will guide you through the installation of WebLogic Platform 10.3.0.0. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".
(這是安裝weblogic10.3.0.0版本,按Next將開始安裝,exit就退出安裝)
Enter [Exit][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Choose BEA Home Directory:
--------------------------
(選擇bea家目錄)
"BEA Home" = [Enter new value or use default "/home/weblogic/bea"]
Enter new BEA Home OR [Exit][Previous][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Choose Install Type:
--------------------
(選擇全部安裝還是自定義安裝,要是你不確定就全部安裝,博主選擇自定義安裝)
Select the type of installation you wish to perform.
->1|Complete
| Install the following software products and examples:
| - WebLogic Server
| - Workshop
2|Custom
| Choose software products and components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 2
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Choose Products and Components:(x代表的是將要安裝的,我們不使用workshop,所以選2 將x去掉)
-------------------------------
Release 10.3.0.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic JDBC Drivers [1.5] x
| |_____Third Party JDBC Drivers [1.6] x
| |_____WebLogic Server Clients [1.7] x
| |_____WebLogic Web Server Plugins [1.8] x
| |_____UDDI and Xquery Support [1.9] x
| |_____Server Examples [1.10] x
|_____Workshop [2] x
|_____Workshop for WebLogic [2.1] x
|_____Workshop Runtime Framework [2.2] x
*Estimated size of installation: 788.3 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Choose Products and Components:(workshop已經(jīng)沒有x了)
-------------------------------
Release 10.3.0.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic JDBC Drivers [1.5] x
| |_____Third Party JDBC Drivers [1.6] x
| |_____WebLogic Server Clients [1.7] x
| |_____WebLogic Web Server Plugins [1.8] x
| |_____UDDI and Xquery Support [1.9] x
| |_____Server Examples [1.10] x
|_____Workshop [2]
|_____Workshop for WebLogic [2.1]
|_____Workshop Runtime Framework [2.2]
*Estimated size of installation: 406.3 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
JDK Selection (Any * indicates BEA Supplied VM):
------------------------------------------------
(選擇安裝jdk,默認全部安裝)
JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.
1|Add Local Jdk
2|/home/weblogic/bea/jdk160_05[x]*
3|/home/weblogic/bea/jrockit_160_05[x]*
*Estimated size of installation: 759.1 MB
Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Choose Product Installation Directories:(選擇weblogic servere的安裝目錄,默認使用下面的目錄,你也可以指定安裝目錄)
----------------------------------------
BEA Home Directory: [/home/oracle/bea]
Product Installation Directories:
"WebLogic Server" = [Enter new value or use default "/home/weblogic/bea/wlserver_10.3"]
Enter new WebLogic Server OR [Exit][Previous][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
The following Products and JDKs will be installed:(以下的這些將會被安裝)
--------------------------------------------------
WebLogic Platform 10.3.0.0
|_____WebLogic Server
| |_____Core Application Server
| |_____Administration Console
| |_____Configuration Wizard and Upgrade Framework
| |_____Web 2.0 HTTP Pub-Sub Server
| |_____WebLogic JDBC Drivers
| |_____Third Party JDBC Drivers
| |_____WebLogic Server Clients
| |_____WebLogic Web Server Plugins
| |_____UDDI and Xquery Support
| |_____Server Examples
|_____JDKs
|_____Sun SDK 1.6.0_05
|_____BEA JRockit 1.6.0_05 SDK
*Estimated size of installation: 759.1 MB
Enter [Exit][Previous][Next]> 回車
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
Creating Domains...
<----------------------------------------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------------------------------------------------------------->
Installation Complete
Congratulations! Installation is complete.
Press [Enter] to continue or type [Exit]> 回車就完成了
上面的僅是weblogic server 的安裝,要在生產(chǎn)中使用肯定還需要安裝域domain Administrator等等;
[weblogic@smallmeng security]$ pwd
/home/weblogic/bea/jrockit_160_05/jre/lib/security
Weblogic線程掛在security相關的隨機數(shù)生成上面,是由于JDK的Bug(JDK從/dev/random
讀‘randomness’經(jīng)常耗費10分鐘或者更長的時間),改為下面對weblogic的啟動時間會縮小很多。
[weblogic@smallmeng security]$ vim java.security
securerandom.source=file:/dev/./urandom
weblogic Domain的安裝:
[weblogic@smallmeng bin]$ pwd
/home/weblogic/bea/wlserver_10.3/common/bin
[weblogic@smallmeng bin]$ ls
commEnv.sh config.sh setPatchEnv.sh startPointBaseConsole.sh stopPointBase.sh upgrade.sh wlsifconfig.sh
config_builder.sh pack.sh startManagedWebLogic.sh startPointBase.sh unpack.sh wlscontrol.sh wlst.sh
[weblogic@smallmeng bin]$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Welcome:
--------
Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an existing domain.
(是否創(chuàng)建一個weblogic domain)
->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.
2|Extend an existing WebLogic domain
| Extend an existing WebLogic domain. Use this option to add applications and services, or to override existing database access (JDBC) and messaging (JMS) settings. You can also
|incorporate additional functionality in your domain, for example, by including AquaLogic Service Bus.
Enter index number to select OR [Exit][Next]>回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Select Domain Source:
---------------------
Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from a list of existing domain templates.
->1|Choose Weblogic Platform components (創(chuàng)建一個新的domain)
| You can choose the Weblogic component(s) that you want supported in your domain.
2|Choose custom template (創(chuàng)建一個模板,依賴圖形化,博主之前自己玩過,不好玩)
| Choose this option if you want to use an existing template. This could be a custom created template using the Template Builder.
Enter index number to select OR [Exit][Previous][Next]>回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Application Template Selection:(新域的模板,默認)
-------------------------------
Available Templates
|_____WebLogic Server (Required)x
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Administrator Username and Password:
----------------------------------------------
(weblogic domain的用戶 密碼 web 控制臺也是一樣的)
Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enter option number to select OR [Exit][Previous][Next]> 2
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.
"*User password:" = []
Enter new *User password: OR [Exit][Reset][Accept]>(密碼)
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.
"*Confirm user password:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]> (密碼)
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
(域的使用模式)
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode 開發(fā)
2|Production Mode 生產(chǎn)
Enter index number to select OR [Exit][Previous][Next]> 2
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Java SDK Selection:
-------------------
->1|JRockit SDK 1.6.0_05 @ /home/weblogic/bea/jrockit_160_05
2|Sun SDK 1.6.0_05 @ /home/weblogic/bea/jdk160_05
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]>回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Choose Configuration Option:
----------------------------
(選擇你是否要修改這個新域的模板,模板默認的端口為7001,選擇“否”就是默認的,比如我想使用8002端口,選擇否安裝完成后在config.xml里面修改端口也行,選擇是直接配置修改端口)
*Do you want to modify any of the preconfigured settings or defaults in your template?
*
*To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.
1|Yes
->2|No
選擇no 讓你確認完安裝路徑直接就開始安裝了,yes還要修改一些自己習慣的配置,這塊博主選擇yes
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure RDBMS Security Store Options:
---------------------------------------
Create the RDBMS tables in your datastore prior to booting your domain. The scripts for use by your DBA are in WebLogic Server's server/lib directory. Click Next to keep the template
settings or bypass RDBMS options.
->1|I don't want to change anything here.
2|I want to create, change, or remove RDBMS support.
Enter index number to select OR [Exit][Previous][Next]>回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to
perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer | domian的管理服務
2| Listen address: | All Local Addresses | 監(jiān)聽的地址
3| Listen port: | 7001 | 端口
4| SSL listen port: | N/A | ssl監(jiān)聽的端口,默認7002
5| SSL enabled: | false | 是否支持ssl
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> 3
Enter value for "Listen port" OR [Exit][Previous][Next]> 8002
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to
perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 8002 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Managed Servers:
--------------------------
Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Server is an instance of WebLogic Server used
to host enterprise applications.
| Name* | Listen address | Listen port | SSL listen port | SSL enabled |
_|_______|________________|_____________|_________________|_____________|
(ssl實例配置)
Enter name for a new OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Clusters:
-------------------
(集群,我們是獨立的weblogic server不需要集群配置)
Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and work together to provide increased scalability and
reliability. A cluster appears to be a single WebLogic Server instance to clients.
| Name* | Multicast address | Multicast port | Cluster address |
_|_______|___________________|________________|_________________|
Enter name for a new Cluster OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Machines: //節(jié)點管理服務器不需要
-------------------
Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.
| Name* | Node manager listen address | Node manager listen port |
_|_______|_____________________________|__________________________|
Enter name for a new Machine OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Configure Unix Machines: //節(jié)點管理服務器的名稱,沒有
------------------------
Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.
| Name |
_|______|
Enter name for a new Unix Machine OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Select the target domain directory for this domain: //domain的安裝路徑,默認就好
---------------------------------------------------
"Target Location" = [Enter new value or use default "/home/weblogic/bea/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Edit Domain Information: //domain的名稱,便于識別博主改為weblogic_8002
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> weblogic_8002
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Edit Domain Information: //編輯或確認以下信息
------------------------
| Name | Value |
_|________|_______________|
1| *Name: | weblogic_8002 |
Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 回車
<--------------------------------------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------------------------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
切換到新域的安裝路徑,可以看到我們定義安裝的新域
[weblogic@smallmeng domains]$ pwd
/home/weblogic/bea/user_projects/domains
[weblogic@smallmeng domains]$ ls
weblogic_8002
切換到新域里面,啟動weblogic
[weblogic@smallmeng bin]$ pwd
/home/weblogic/bea/user_projects/domains/weblogic_8002/bin
[weblogic@smallmeng bin]$ vim startWebLogic.sh
添加以下兩行:
WLS_USER=weblogic
WLS_PW=weblogic
[weblogic@smallmeng bin]$ nohup ./startWebLogic.sh & //啟動weblogic 用戶為:weblogic 密碼:weblogic,這是剛才配置時設置的
在瀏覽器輸入:http://192.168.1.33:8002/console/
weblogic server項目的發(fā)布目錄配置:
(鎖定并編輯,自己在發(fā)布的同時,其他同事也可能在操作,所以鎖定并編輯,然后下一步-下一步選擇你的項目包安裝,下一步,就完成安裝了)
WTC的配置,就是常說的tcpcall(你要和哪臺主機通信,可以理解為這樣):
新建一個WTC server(默認的就好,主要是里面的配置,這塊可改可不改):
WTC server 本地開啟的端口和遠程主機的端口(這塊就不配了,畢竟博主是測試機)
怎么看兩臺主機之間是不是通信了?(1、linux終端是否可以看到你這塊配的端口起來了。2、就是下面所示的)
起來的話可以看到administrator ture就表示ok
jdbc的配置(項目要使用數(shù)據(jù)庫,那就要配置jdbc了,可以先隨便配的,然后再調試):
博主就嘮叨到這,有問題可以Q,下章博主講下weblogic server 12c的安裝,大同小異。
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。