solaris下weblogic使用技巧点滴
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