设为首页 收藏本站
查看: 754|回复: 0

[经验分享] solaris下weblogic使用技巧点滴

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2017-2-15 10:23:04 | 显示全部楼层 |阅读模式
  solaris下weblogic使用技巧点滴
说明:服务器硬件:sun fire 280R
weblogic软件:weblogic 8.1 sp3

本人声明如需转载请保留如下信息:
作者:SOLARIS小兵
MAIL:solarisxb@hotmail.com
FROM:WWW.CHINAUNIX.NET

一、在solaris字符界面创建weblogic域方法:
* 到weblogic的安装目录下:
  #cd /export/home/bea/weblogic81/common/bin
* 执行./config.sh命令
#./config.sh
* 字符界面如下:
Unable to instantiate GUI, defaulting to console mode.

<-----------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.

* [/export/home/bea/weblogic81/common/templates/domains]

1|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.

->2|Basic WebLogic Server Domain 8.1.3.0
|  BEA Systems, Inc.
|  Create a basic WebLogic Server domain without installing sample
|applications.

3|Basic WebLogic Workshop Domain 8.1.3.0
|  BEA Systems, Inc.
|  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.

4|Avitek Medical Records Sample Domain 8.1.3.0

Enter index number to select OR [Down][Exit][Previous][Next]> 2
<------------------- 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
* 创建weblogic管理用户和密码:
<------------------- 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]>

<------------------- BEA WebLogic Configuration Wizard ------------------->
* 选择要创建域Domain的模式:选择Production Mode模式
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环境选择:Java SDK Selection
Java SDK Selection:
-------------------
->1|JRockit SDK 1.4.2_04-8130 @ /export/home/bea/jrockit81sp3_142_04
2|Sun SDK 1.4.2_04 @ /export/home/bea/jdk142_04
3|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]> 2

<------------------- BEA WebLogic Configuration Wizard ------------------->
* 选择domain的创建目录:
注:目录路径无需写domain的名称,要不目录会重。
Select the target domain directory for this configuration:
----------------------------------------------------------

"Target Location" = [/export/home/bea/user_projects/domains]

Input new Target Location OR [Exit][Previous][Next]> /export/home/bea

<------------------- BEA WebLogic Configuration Wizard ------------------->

Edit Domain Information:
------------------------

|  Name  |  Value   |
_|________|__________|
1| *Name: | mydomain |

Enter value for "Name" OR [Exit][Previous][Next]>
* 开始创建domain:
<------------------- BEA WebLogic Configuration Wizard ------------------->

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****
*
* 备注:要是安装失败,会有提示的。
二、weblogic启动密码自动添加
1、存储加密后的用户身份,使用boot.properties文档来避免启动脚本中出现硬编码的用户身份。创建密码启动文档:boot.properties
#cd /export/home/bea/mydomain
2、写入登陆用户、密码:
# vi boot.properties
password=system
username=manager
3、系统会自动加密用户名和密码:
# vi boot.properties
#Thu Jun 16 12:01:02 CST 2005
password={3DES}rS5f2/lJowyEnrkv5Q14tA\=\=
username={3DES}RKPFkGopsVaY6aFXkOuAAA\=\=~
三、nohup方式自启动weblogic
1、在Unix中,使用 'nohup' 运行 WebLogic Server启动脚本,以确保即使您注销以后,服务器依然在后台运行。为了防止weblogic启动以后,退出登陆窗口weblogic会停止,所以使用nohup方式。
2、在startWebLogic.sh文档中添加nohup和&后台符号。
  # more startWebLogic.sh
nohup ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS}
-Dweblogic.Name=${SERVER_NAME}
-Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE}
-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy"
weblogic.Server&
四、weblogic配置维护:
1、维护配置:
Weblogic的console是在浏览器中实现的访问方法
http://127.0.0.1:7001/console,假如需要登录的话
用户名:system
密码:manager

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-342416-1-1.html 上篇帖子: weblogic集群配置(windows版) 下篇帖子: <转>Weblogic和MyEclipse的配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表