Shanghai Baosight Software Co.,Ltd.√Weblogic安装配置以及应用部署编制毛瑜明审核批准上海宝信软件股份有限公司2009年8月3日√文档控制 修改历史:日期 作者或修改人 版本号 版本描述(修改记录) 2009-8-12 毛瑜明 V1.0没有前期版本分发记录:拷贝号姓名 部门√目 录1. Weblogic 的安装 ............................................................................................. 4 1.1. 安装前的准备 . (4)1.1.1. 软件环境 ..................................................................................... 4 1.2. 安装weblogic9.2.1.0 ............................................................................ 4 1.3. 创建域(domain ) ............................................................................... 6 1.4. 部署应用 (10)1.4.1. 启动和关闭weblogic ................................................................ 10 1.4.2. 创建server ............................................................................... 10 1.4.3. 部署应用 .. (13)√1. Weblogic 的安装1.1. 安装前的准备✧ 首先请确认您要安装的WebLogic 版本所在的平台已通过了BEA 的认证 ✧ 确定一个安装目录,建议该目录下至少有1个G 的空间,可以使用du 来察看磁盘空间的使用情况1.1.1. 软件环境 ✧ 操作系统:SunOS 5.10 Generic_118833-171.2. 安装weblogic9.2.1.0可以通过GUI 图形界面来进行安装,或者通过文本交互的方式来安装。
赋予可执行权限:chmod a+x server921_generic.jar执行java -jar server921_generic.jar 进入控制台安装的欢迎界面Java Accessibility Bridge for GNOME loaded. Unable to instantiate GUI, defaulting to console mode.Extracting 0%.....................................................................................................100% <-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->Welcome: --------This installer will guide you through the installation of BEA Products. 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]> Next1、 BEA Systems License Agreement: ( 此时出现授权许可协议,读完后键入[1]继续)Use above value or select another option: 1 - Yes, I agree with the terms of the license2 - No, I do not agree with the terms of the license√Enter option number to select OR [Down][Exit][Previous]> 1 2、Choose BEA Home Directory: (选择BEA 主目录) ->1|* Create a new BEA Home 2|/opt/bea 3|/shopadm/bea 输入 /opt/bea3、Choose Components to install:(选择需要安装的产品和组件,X 表示已经选中) Release 9.2.1.0|_____WebLogic Server [Installed] x | |_____Server [Installed] x| |_____Server Examples [Installed] x | |_____Web Server Plug-Ins [1.3]|_____Workshop for WebLogic Platform [Installed] x |_____Workshop [Installed] x|_____Workshop Examples [Installed] x ** At least one component must be selected 选中之后,键入Next 继续4、Choose Install Type: (选择安装类型,完全安装或者自定义安装)Select the type of installation you wish to perform. 1|Complete| Install the following software components and examples: | - WebLogic Server| - Workshop for WebLogic Platform ->2|Custom| Choose software components to install and perform optional configuration. Enter index number to select OR [Exit][Previous][Next]>1 5、Installing files0% 25% 50% 75% 100% [------------|------------|------------|-----------]开始安装,安装完毕√1.3. 创建域(domain )安装完成之后,需要创建域。
使用root 用户登录系统: [weblogic@ bin]$ cd /opt/bea/weblogic92/common/bin [weblogic@ bin]$ ./config.shUnable to instantiate GUI, defaulting to console mode.进入设置: <-------- BEA WebLogic Configuration Wizard --------------> Create or Extend a Configuration: ---------------------------------1、Choose between creating and extending a configuration. Based on yourselection, the Configuration Wizard guides you through the steps to generate a new or extend an existing configuration. (选择创建一个新的配置或者修改已有的配置)->1|Create a new WebLogic configuration| Start here to create a WebLogic configuration in your projects directory. 2|Extend an existing WebLogic configuration| Start here to extend an existing WebLogic configuration. Use thisoption to add applications and services, including Database| access (JDBC) and Messaging (JMS). This option also enables you to extendfunctionality by enabling WebLogic Workshop. Enter index number to select OR [Exit][Next]> 1<--------------------- BEA WebLogic Configuration Wizard ---------------------> Select a Domain Template: -------------------------2、Please select a template from the list or select another directory of templates. *The selected template is the same as the one you are working on. Do you *want to reload the template ? (选择模版) ->1|Yes 2|NoEnter index number to select OR [Exit][Next]> 1<------------------------- BEA WebLogic Configuration Wizard ------------------------->√Choose Configuration Option: -------------------------3、 *Do you want to run the wizard in express mode? (使用express 模式) ->1|Yes 2|NoEnter index number to select OR [Exit][Previous][Next]> 1<------------------------- BEA WebLogic Configuration Wizard -------------------------> Configure Administrative Username and Password: --------------------4、Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development mode servers.(修改admin user 的用户名密码) | Name | Value | _|_________________________|_________________________________| 1| *User name: | weblogic | 2| *User password: | | 3| *Confirm user password: | | 4| Description: | The default administration user |Select 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 (修改用户名,密码,密码确认通过选择相对应的数字完成)| Name | Value | _|_________________________|_________________________________|√1| *User name: | weblogic | 2| *User password: | ******** | 3| *Confirm user password: | ******** | 4| Description: | The default administration user |Select Option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> next (修改完毕,进入下一步)<------------------------- BEA WebLogic Configuration Wizard -------------------------> Domain Mode Configuration: --------------------------3、Enable Development or Production Mode for this domain. (选择产品模式或者开发模式。