- 浏览: 50879 次
- 性别:
- 来自: 北京
最新评论
Linux下的WebLogic安装部署
把WebLogic的bin包放在/home目录上.
1、创建weblogic用户组。
groupadd weblogic
useradd -g weblogic weblogic
passwd weblogic(修改weblogic密码)
2、创建/var/web/jsp/bea目录,修改目录所有者权限
mkdir /var/web/jsp/bea
mkdir /var/web/jsp/bea
chown –Rf weblogic:weblogic /var/web/jsp/bea
3、用weblogic用户登陆系统,修改配置文件。
vi ~/.bash_profile
vi ~/.bash_profile
增加export LANG=en_US.iso885915
赋予
.bin
可执行权限:
chmod a+x platform814_linux32.bin
执行./platform814_linux32.bin -mode=console
执行./platform814_linux32.bin -mode=console
进入控制台安装的欢迎界面,键入
[Next]
继续
此时出现授权许可协议,读完后键入 [Yes] 继续
提示选择一个 BEA 主目录 :
此时出现授权许可协议,读完后键入 [Yes] 继续
提示选择一个 BEA 主目录 :
输入:
/var/web/jsp/bea
确认
BEA
主目录
,
键入
[1]
继续
选择安装类型 , 键入 [1] 继续
选择安装类型 , 键入 [1] 继续
选择安装路径
,
默认,输入
[next]
继续。
确认安装路径。键入
[1]
继续
安装完毕。
注:(两个补丁文件见补丁包的说明)
注:(两个补丁文件见补丁包的说明)
使用WebLogic用户登录系统:
[weblogic@jcms bin]$ cd /var/web/jsp/bea/weblogic81/common/bin
[weblogic@jcms bin]$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.
进入设置:
<-------- BEA WebLogic Configuration Wizard -------------->
<-------- BEA WebLogic Configuration Wizard -------------->
Create or Extend a Configuration:
---------------------------------
Choose between creating and
extending a configuration. Based on your selection, 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 this option to add
applications and services, including Database
| access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling WebLogic Workshop.
Enter index number to select OR [Exit][Next]> 1
<-------------------------------- BEA WebLogic Configuration Wizard ----------------------->
Select a Domain Template:
-------------------------
Please select a template from the list or select another directory of templates.
*[/home/weblogic/bea/weblogic81/common/templates/domains]
1|Basic WebLogic Platform Domain 8.1.3.0
|BEA Systems, Inc.
|Create a basic
WebLogic Platform domain, without installing sample
applications.Domains created from this template will support the
|WebLogic Server,
WebLogic Workshop, WebLogic Integration and WebLogic Portal runtime
functionality, including support for J2EE
|applications, Web
applications, Web Services, custom controls, business processes and
portals.Use domains created from this template
|for development of WebLogic Platform applications.
2|Basic WebLogic Portal Domain 8.1.3.0
|BEA Systems, Inc.
|Create a basic
WebLogic Portal domain, without installing sample applications.
Domains created from this template will support the
|WebLogic Server,
WebLogic Workshop and WebLogic Portal runtime functionality, including
support for J2EE applications, Web applications,
|Web Services, custom controls
and portals.Use domains created from this template for development of
WebLogic Portal applications.
3 |Basic WebLogic Integration Domain 8.1.3.0
|BEA Systems, Inc.
|Create a basic
WebLogic Integration domain, without installing sample applications.
Domains created from this template will support
|the WebLogic Server,
WebLogic Workshop and WebLogic Integration runtime functionality,
including support for J2EE applications, Web
|applications, Web Services,
custom controls and business processes.Use domains created from this
template for development of WebLogic
|Integration applications.
4|Basic WebLogic Workshop Domain 8.1.3.0
|BEA Systems, Inc.
Enter index number to select OR [Down][Exit][Previous][Next]> down
<---------------------- BEA WebLogic Configuration Wizard ---------------------------->
Select a Domain Template:
-------------------------
Please select a template from the list or select another directory of templates.
|Create a basic
WebLogic Workshop domain, without installing sample applications.
Domains created from this template will support the |WebLogic Server
and WebLogic Workshop runtime functionality, including support for J2EE
applications, Web applications, Web Services and |custom
controls.Use domains created from this template for development of
WebLogic Workshop applications.
->5|Basic WebLogic Server Domain 8.1.3.0
|BEA Systems, Inc.
|Create a basic WebLogic Server domain without installing sample applications.
6|WebLogic Server Examples Domain 8.1.3.0
|BEA Systems, Inc.
|Create the WebLogic
Server Examples domain in a directory outside of the installed kit.The
Examples domain contains a collection of
|examples to show best practices for coding individual J2EE APIs.
7|Avitek Medical Records Sample Domain 8.1.3.0
|BEA Systems, Inc.
|Create the Avitek
Medical Records domain in a directory outside of the installed kit.The
Avitek Medical Records is a WebLogic Server |sample application
suite that concisely demonstrates all aspects of the J2EE platform.
8|Select another directory location
Enter index number to select OR [Up][Exit][Previous][Next]>5
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Select a Domain Template:
-------------------------
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|No
Enter index number to select OR [Exit][Next]> 1
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Choose Configuration Option:
-------------------------
*Do you want to run the wizard in express mode?
->1|Yes
2|No
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Configure Administrative Username and Password:
--------------------
Create a user automatically
assigned to the Administrative 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: | 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
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Configure Administrative Username and Password:
--------------------
Create a user automatically
assigned to the Administrative Role. This user is the default
administrator used to start development mode
servers.
"*User password:" = []
Input new *User password: OR [Exit][Reset][Accept]> [输入八位密码]
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Configure Administrative Username and Password:
--------------------
Create a user automatically
assigned to the Administrative 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: | The default administration user |
Select 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
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Configure Administrative Username and Password:
--------------------
Create a user automatically
assigned to the Administrative Role. This user is the default
administrator used to start development mode
servers.
"*Confirm user password:" = []
Input new *Confirm user password: OR [Exit][Reset][Accept]> [确认八位密码]///口令必须与上面的一样
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Configure Administrative Username and Password:
--------------------
Create a user automatically
assigned to the Administrative 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: | The default administration user |
Select 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]> next
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Java SDK Selection:
-------------------
->1|JRockit SDK 1.4.2_04-8130 @ /home/weblogic/bea/jrockit81sp3_142_04
2|Sun SDK 1.4.2_04 @ /home/weblogic/bea/jdk142_04
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Select the target domain directory for this configuration:
----
"Target Location" = [/home/weblogic/bea/user_projects/domains]
Input new Target Location OR [Exit][Previous][Next]> [直接回车]
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Edit Domain Information:
------------------------
|Name|Value |
_|________|__________|
1| *Name: | mydomain |
Enter value for "Name" OR [Exit][Previous][Next]> [输入名称或者直接回车]
<------------------------- BEA WebLogic Configuration Wizard ------------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
完成服务的建立!
1、如何启动WebLogic
[weblogic@jcms bin]$ cd /var/web/jsp/bea/user_projects/domains/mydomain
[weblogic@jcms bin]$ ./startWebLogic.sh (需要输入用户名密码)
2、如何关闭WebLogic
[weblogic@jcms bin]$ ./stopWebLogic.sh
1、无需输入用户名密码启动关闭weblogic。
以weblogic账户在mydomain目录下,新建boot.properties文件,输入:
password=12345678
username=weblogic
username=weblogic
把启动weblogic的用户名密码写进入。
2、修改starWeblogic.sh和stopWeblogic脚本
①startWeblogic.sh
/usr/bin/nohup ${JAVA_HOME}……………… weblogic.Server > /var/web/weblogic.log 2>&1
注意:红色部分为添加的命令。意为将启动脚本放到后台执行,并输出日志。
②stopWeblogic.sh
#!/bin/sh
………………脚本内容………(删除这段脚本,用于身份验证,删除后就无需输入用户名密码)
………………脚本内容………(删除这段脚本,用于身份验证,删除后就无需输入用户名密码)
# set server name
3、将weblogic的启动关闭作为linux系统服务。
以root账户在/etc/init.d下新建weblogic文件,内容如下:
#!/bin/sh
# chkconfig: 345 20 80
# description: Weblogic auto start-stop script.
DOMAIN_HOME=/var/web/jsp/user_projects/domains/mydomain
WLS_OWNER=weblogic
case "$1" in
'start')
su - ${WLS_OWNER} -c "cd ${DOMAIN_HOME}; ./startWebLogic.sh"
;;
'stop')
su - ${WLS_OWNER} -c "cd ${DOMAIN_HOME}; ./stopWebLogic.sh"
;;
Esac
其中DOMAIN_HOME是你创建的用户域的路径。文件配置好后,就可以利用linux的服务来启动和关闭weblogic了。
#service weblogic start
4、随系统自动启动和关闭weblogic
以root用户执行如下命令:
ln -s /etc/init.d/weblogic /etc/rc.d/rc1.d/K80weblogic
ln -s /etc/init.d/weblogic /etc/rc.d/rc2.d/S20weblogic
ln -s /etc/init.d/weblogic /etc/rc.d/rc3.d/S20weblogic
ln -s /etc/init.d/weblogic /etc/rc.d/rc4.d/S20weblogic
ln -s /etc/init.d/weblogic /etc/rc.d/rc5.d/S20weblogic
ln -s /etc/init.d/weblogic /etc/rc.d/rc6.d/K80weblogic
另外,其实我们也可以通过运行setup命令,在system services里面设置weblogic服务是否自动启动。
A
:
weblogic无法启动,错误信息<error>包含如下
,
<Error> <EmbeddedLDAP> <000000> <Error opening the Transaction Log: ./myserver/ldap/ldapfiles/EmbeddedLDAP.tran: Permission denied>
<Error> <EmbeddedLDAP> <000000> <Error opening the Transaction Log: ./myserver/ldap/ldapfiles/EmbeddedLDAP.tran: Permission denied>
Q
:
LDAP启动失败,导致的问题可能是用root账户启动了weblogic。检查mydomain目录下myserver/ldap/ldapfiles下的文件权限,是否是weblogic用户组,如果还是无法启动,请删除.tran文件。
A
:
weblogic无法启动,错误信息<error>包含如下,
<Error>
<Deployer> <BEA-149204> <The deployment framework was
unable to register with the Data Replication Service.
<Error> <Deployer> <BEA-149601> <The deployment framework was unable to resume accepting requests.>
<Error> <Deployer> <BEA-149601> <The deployment framework was unable to resume accepting requests.>
Q
:
问题是管理域无法与用户域通信。查看linux系统主机名,查看/etc/hosts文件,看是否有如下一行主机记录,如果没有,请将这一行记录加入到/etc/hosts文件中。
127.0.0.1 localhost.localdomain localhost
相关推荐
Linux环境下安装和部署WebLogic 8.1是一个关键任务,涉及到服务器配置、权限管理以及软件安装等多个步骤。本文档详细阐述了如何在Linux系统中进行WebLogic Server的安装和应用程序的部署,同时提供了处理常见问题的...
因公司项目生成上是这个版本的weblogic,所以在网上找了个相同版本的,方便做测试。以及weblogic的相应版本的jdk等等统统打包,还有安装部署教材,非常详细,适合初学者来学习了解。 linux
### Linux系统WebLogic安装部署详解 #### 一、部署前准备 在进行WebLogic服务器的安装之前,需要完成一系列的准备工作来确保环境符合要求。这些步骤包括但不限于创建必要的用户组和用户、设置工作目录以及调整系统...
RedHat Linux下的WebLogic安装部署 在 RedHat Linux 操作系统中,安装和部署 WebLogic 是一个复杂的过程,涉及到多个步骤和配置文件的修改。本节将详细介绍如何在 RedHat Linux 中安装和部署 WebLogic。 1. 部署前...
【Linux下WebLogic安装部署详解】 在Linux操作系统中部署Oracle WebLogic Server是企业级Java应用程序部署的常见场景。WebLogic Server是一款强大的应用服务器,用于运行和管理Java EE应用程序。以下是一份详细的...
Linux 下安装和部署 WebLogic 安装前准备 在 RedHat Linux 下安装和部署 WebLogic 之前,需要进行一些准备工作。首先,需要将 WebLogic 的 bin 包放在 /home 目录上。然后,创建一个名为 weblogic 的用户组和用户...
Weblogic 的安装过程可以分为两部分:Linux 下安装过程和 Windows 中安装过程。下面是 Linux 下安装过程的详细步骤: 1. 部署前准备:创建 weblogic 用户组和用户,创建 /Oracle 目录,并修改目录所有者权限。 2. ...
在Linux环境下安装WebLogic并部署应用是一项常见的任务,特别是在企业级应用服务器环境中。本文档详细介绍了如何在Red Hat Enterprise Linux (RHEL) 6.5 64位操作系统上安装WebLogic 10.3.6版本,并部署应用程序。此...
linux下weblogic集群部署,详细描述weblogic在linux下的部署情况
linux下部署weblogic,1.1 部署前准备 把WebLogic的bin包放在/home目录上. 1、创建weblogic用户组。 groupadd weblogic
在Linux环境下安装WebLogic是一个系统性的过程,涉及到多个步骤和配置。WebLogic是Oracle公司提供的一个企业级Java应用服务器,广泛用于构建、部署和管理分布式应用程序。以下是对Linux下WebLogic安装过程的详细说明...
- **执行安装脚本:** 在命令提示符中,导航至WebLogic的安装目录,运行相应的安装脚本,例如`setup.cmd`或`setup.sh`(对于Linux用户)。按照提示完成安装过程。 - **设置密码:** 在安装过程中会要求设置WebLogic...
《Weblogic for Linux部署配置手册》是一份详细指导在Linux环境下安装、配置和管理Weblogic应用服务器的手册。Weblogic是Oracle公司的一款企业级Java应用服务器,它提供了强大的中间件服务,支持各种Java应用程序和...
linux 下weblogic部署web项目,先新建新端口,然后配置用shartxxxx.sh后台启动项目,最后部署项目
步骤描述清楚详细,原创资源! Linux安装weblogic12详细步骤
在Linux环境下安装WebLogic是一项复杂而重要的任务,它涉及到多个步骤和组件的配置。WebLogic是Oracle公司的一款企业级Java应用程序服务器,常用于部署和管理Java EE应用。本手册将详细解析这一过程。 首先,我们...
在《Linux下Weblogic安装.pdf》这一文档中,详尽地阐述了在Linux环境下安装、配置及运行Oracle WebLogic Server的全过程,WebLogic是Oracle公司的一款高性能应用服务器,广泛应用于企业级Java EE应用的开发与部署。...