linux下weblogic 12.1.1.0的搭建
Linux下weblogic 12.1.1.0的搭建
简介:
WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应 用的java应用服务器。将Java的动态功能和Java EnterPRise标准的安全性引入大型网络应用的开发、集成、部署和管理之中。
软件的下载:
weblogic_server103_linux32.bin下载地址 http://pan.baidu.com/s/1hqiWQMC
fmw_12.1.3.0.0_wls.jar下载地址http://pan.baidu.com/s/1nt5Nrip
wls1211_linux32.bin下载地址http://pan.baidu.com/s/1o6uVTA6
下面是搭建的操作:
# groupadd weblogic# useradd -g weblogic weblogic# passwd weblogic# mkdir -p /root/weblogic# chown -R weblogic:weblogic /root/weblogic# chmod a+x /root/wls1211_linux32.bin# ./wls1211_linux32.bin
上面那部可能会报错-bash: ./wls1211_linux32.bin: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
解决:# yum install glibc.i686
Welcome:--------This installer will guide you through the installation of WebLogic 12.1.1.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".Enter [Exit][Next]> NextChoose Middleware Home Directory:--------------------------------- "Middleware Home" = [Enter new value or use default "/root/Oracle/Middleware"]Enter new Middleware Home OR [Exit][Previous][Next]> /root/weblogicChoose Middleware Home Directory: --------------------------------- "Middleware Home" = [/root/weblogic]Use above value or select another option: 1 - Enter new Middleware Home 2 - Change to default [/root/Oracle/Middleware]Enter option number to select OR [Exit][Previous][Next]> NextRegister for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support PassWord:[] 3|Receive Security Update:[Yes]Enter index number to select OR [Exit][Previous][Next]> 3Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"]Enter [Yes][No]? NoRegister for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] ** Do you wish to bypass initiation of the configuration manager and ** remain uninformed of critical security issues in your configuration?Enter [Yes][No]? yesRegister for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support Password:[] 3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]> NextChoose Install Type:--------------------Select the type of installation you wish to perform. ->1|Typical | Install the following product(s) and component(s): | - WebLogic Server | - Oracle Coherence 2|Custom | Choose software products and components to install and perform optional |configuration.Enter index number to select OR [Exit][Previous][Next]> 1Choose Product Installation Directories:----------------------------------------Middleware Home Directory: [/root/weblogic]Product Installation Directories: 1|WebLogic Server: [/root/weblogic/wlserver_12.1] 2|Oracle Coherence: [/root/weblogic/coherence_3.7]Enter index number to select OR [Exit][Previous][Next]> NextThe following Products and JDKs will be installed:-------------------------------------------------- WebLogic Platform 12.1.1.0 |_____WebLogic Server | |_____Core application Server | |_____Administration Console | |_____Configuration Wizard and Upgrade Framework | |_____Web 2.0 HTTP Pub-Sub Server | |_____WebLogic SCA | |_____WebLogic JDBC Drivers | |_____Third Party JDBC Drivers | |_____WebLogic Server Clients | |_____Xquery Support | |_____Evaluation Database |_____Oracle Coherence | |_____Coherence Product Files |_____JDKs |_____SUN SDK 1.6.0_29 |_____Oracle JRockit 1.6.0_29 SDK *Estimated size of installation: 1,178.0 MBEnter [Exit][Previous][Next]> NextInstalling files..0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Installing JDK....Performing String Substitutions... Configuring OCM...Installing Patches...Creating Domains...Installation CompletePress [Enter] to continue or type [Exit]> ↙配置weblogic# cd /var/bea/wlserver_12.1/common/bin# ./config.shWelcome:--------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.->1|Create a new WebLogic domain | Create a WebLogic domain in your projects directory. 2|Extend an existing WebLogic domain | Use this option to add new components to an existing domain and modify |configuration settings.Enter index number to select OR [Exit][Next]> 1Select 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 | You can choose the Weblogic component(s) that you want supported in |your domain. 2|Choose custom template | 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]> 1Application Template Selection:------------------------------- Available Templates |_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x |_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2] |_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3] |_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> nextEdit Domain Information:------------------------ | Name | Value | _|________|_____________| 1| *Name: | base_domain |Enter value for "Name" OR [Exit][Previous][Next]> weblogicEdit Domain Information:------------------------ | Name | Value | _|________|_______ | 1| *Name: | weblogic |Use above value or select another option: 1 - Modify "Name" 2 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> nextSelect the target domain directory for this domain:--------------------------------------------------- "Target Location" = [Enter new value or use default "/var/bea/user_projects/domains"]Enter new Target Location OR [Exit][Previous][Next]> NextConfigure Administrator User Name 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| *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 "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description"Enter option number to select OR [Exit][Previous][Next]> 2Configure Administrator User Name 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]> 输入密码(至少八位)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| *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 "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description" 5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 3Configure Administrator User Name 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]> 重复密码(至少八位)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| *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 "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description" 5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> nextDomain Mode Configuration:--------------------------Enable Development or Production Mode for this domain. ->1|Development Mode 2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 2Java SDK Selection:------------------- ->1|JRockit SDK 1.6.0_29 @ /var/bea/jrockit_160_29_D1.2.0-102|Sun SDK 1.6.0_29 @ /var/bea/jdk160_29 3|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> nextSelect Optional Configuration:------------------------------ 1|Administration Server [ ] 2|Managed Servers, Clusters and Machines [ ] 3|RDBMS Security Store [ ]Enter index number to select OR [Exit][Previous][Next]> 1Select Optional Configuration:------------------------------ 1|Administration Server [x] 2|Managed Servers, Clusters and Machines [ ] 3|RDBMS Security Store [ ]Enter index number to select OR [Exit][Previous][Next]> nextEach WebLogic Server domain must have one Administration Server. The AdministrationServer is used to perform administrative tasks. | Name | Value | _|__________________|_____________________| 1| *Name: | AdminServer | 2| *Listen address: | All Local Addresses | 3| Listen port: | 7001 | 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"Enter option number to select OR [Exit][Previous][Next]>nextCreating Domain...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]**** Domain Created Successfully! ****
搭建好环境后,编辑启动脚本,加入用户名和密码。
vim startWebLogic.sh
umask 037 这行下面加下面2行
WLS_USER=weblogic
WLS_PW=weblogic8
启动weblogic#nohup ./startWebLogic.sh &http://192.168.1.50:8080/console/ 浏览器一定要加http用户名为weblogic
密码:八位密码
Weblogic 开机启动# vi /etc/rc.local追加nohup /root/weblogic/user_projects/domains/weblogic/bin/startWebLogic.sh &