二、配置Configuration Wizard
软件安装完毕后,下一步配置Domain域,进入weblogic安装目录(例如:/home/bea/weblogic81/common/bin),找到文件config.sh,执行他#./config.sh;
出现配置界面,选中“Create a new weblogic configuration”选项。
选择配置的模块为“Basic weblogic Domain”,然后单击快速配置“Express”,单击[Next]按钮
创建管理页用户名和密码(密码不少于8位),NEXT下一步;
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]> 1
-------------------------------------------------------------------------------------------------------------------
Java SDK Selection:
-------------------
->1|Sun SDK 1.5.0_11 @ /usr/java/jdk1.5.0_11
2|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1
-------------------------------------------------------------------------------------------------------------------
Choose Configuration Option:
----------------------------
*Do you want to modify any of the preconfigured settings or defaults in your template?
*
*To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.
1|Yes
->2|No
Enter index number to select OR [Exit][Previous][Next]> 1
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server
hosts the Administration Console which 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 |
Select 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]>
Edit Domain Information:
------------------------
| Name | Value |
_|________|___________|
1| *Name: | ebusiness |
Select Option:
1 - Modify "Name"
2 - Discard Change
Enter option number to select OR [Exit][Previous][Next]>
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
该界面是所有配置信息的汇总确认,如果没问题,点击Create,开始创建DOMAIN域.
三、启动Weblogic
在启动Weblogic之前,可将服务用户名和密码写入启动脚本。
进入刚刚配置完成的域目录(例如:/home/bea/user_projects/domains/mydomain),编辑startWebLogic.sh启动脚本,执行$ vi startWebLogic.sh
在“WLS_USER= WLS_PW=”输入用户名和密码,保存退出;
最后执行$ ./startWebLogic.sh,启动Weblogic..
./startWeblogic.sh -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
四、停止Weblogic服务
停止Weblogic服务有多种:
1、 KILL掉进程
2、 通过”服务地址:7001/console”,shutdownserver
3、 利用脚本停止服务:
在#/home/bea/user_projects/domains/mydomain 路径下,有一个stopWebLogic.sh文件,执行即可。
************************************************************************************************************************