1.安装weblogic
2.安装xmanager
3.创建域
3.1.在aix unix下创建域
先通过
xmanager
登录系统,用户
root
口令
root
在
terminal
下执行
cd /bea/weblogic81/common/bin
./ config.sh
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/bce733f6dd5240dcb69a2eeff50a75a3.png)
建新域的操作同下面的
windows
的操作
3.2在windows下创建域
1.
启动开始菜单的
quickstart
,
执行
create a new domain configuration
…
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/64668ec5c0ef43c8b548584d53c35930.png)
2
.下一步
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/0e1ebd309e59401c904e28ace1a05ba7.png)
3
.下一步,选自定义
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/04944260cd2c4ccd80d1e2abf3c03652.png)
4
.下一步,
name=myserver,listen port:6001
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/9d2c109f583444888c7eaf9fe8b3d901.png)
5
.下一步
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/14e176c0b2b745b7aaac5a0841ab1d54.png)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/21894520e68c4e9384abb4c3de2a4dcb.png)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/43f49fece2ff44d5aca898e0c0dc1e80.png)
6
.下一步,
user=weblogic password=weblogic
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/721564fe81d9422698efe2cfbf393256.png)
7
.下一步
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/c82b2da6a3724750880df2b3bc832950.png)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/12fcb9b03e694b67b72b0bb5df4f93a6.png)
8
.下一步,选择生产模式
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/332be86f21f54bc1a5e486625b790702.png)
aix
机器要选用
ibm
提供的
jdk,
路径:
/usr/java14
9
.下一步
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/59e6d7eb5ae849eeadfd155bca5d90c7.png)
10
.创建,完成
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/ad61b5f020e849ab8b3b2777dab23415.png)
4.配置服务
4.1服务配置:
4.1.1启动口令配置文件:
在管理服务器的主目录中,例如:
/bea/user_projects/domains/mydomain
,创建文件
boot.properties
加入两行
username=weblogic
password=weblogic
4.1.2启动命令配置
在启动命令
startWebLogic.sh
最后加上
-DINDIGO_HOME=/bea/app
4.1.3系统环境设置
no -p -o udp_sendspace=32768
4.2集群服务配置:
4.2.1代理服务器配置----代理服务
增加代理服务proxyServer,端口为6001 SSL端口为6002,代理服务部署在此服务上
代理服务创建同被管理服务,首先在
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/54a6051fd17d440d97822163ac0e1cbd.png)
中创建新的服务proxyServer,端口为6001 SSL端口为6002
![](https://p-blog.csdn.net/images/p_blog_csdn_net/guozhenblog/b0f582784b904c2f888ae9c0834a78af.png)
创建代理服务启动命令startp.sh,操作同被管理服务启动命令创建,修改ADMIN_URL=为
ADMIN_URL=http://10.158.173.72:6101
,SERVER_NAME=为SERVER_NAME=
proxyServer
,增加
MEM_ARGS="-Xms512m -Xmx512m"(大小值要一样,具体值根据各地实际情况定,建议值768m或1024m,与被管服务相同);将proxy代理服务部署在proxy代理服务上面
部署一个
web
应用
proxy.war
proxy.war
中的
web.xml
的地址需要作相应修改
,
参与
cluster
的服务器都需要加上。例如:
<param-name>WebLogicCluster</param-name>
<param-value>localhost1:9001|localhost2:9001</param-value>
4.2.2管理服务器配置----cluster
1.http://
管理服务器
:6101/console
2.
新建一个
cluster
name = myCluster(
任意
)
clusteraddress =
被管理服务器
1:9001,
被管理服务器
2:9001
multicast Address = 237.0.0.1
multicast Port = 6000(
不能和
6001--
管理服务器和
9001--
被管理服务器重复
)
4.2.3管理服务器配置----managed server
1.http://
管理服务器
:6101/console
2.
新建一个
server
属于上面所建的
cluster
cluster = myCluster
name = MyServer1
listen address =
当前物理机器
ip
port = 6001
4.2.4被管理服务器配置
1.
从已建domain目录中,拷贝startManagedWebLogic.sh为startm.sh
2.
修改startm.sh文件,有五处要修改,下面有全部拷贝及其修改说明。
3.
用nohup ./startm.sh&启动
4.
如果要在别的物理服务器新建被管理服务器,在该服务器上安装bea,bea_home选择同样的目录
5.
从已建domain目录拷贝setEnv.sh,startm.sh,serializedsystemini.dat到该被管理服务器同样目录中
6.
修改startm.sh文件中SERVER_NAME= cluster中配置的服务器名
7.chmod 777 *
8.
用nohup ./starm.sh&启动
///
startm.sh
共五处要修改,修改完成后用如下命令启动:
nohup ./startm.sh&
///
#!/bin/sh
# ****************************************************************************
# This script is used to start a managed WebLogic Server for the domain in the
# current working directory. This script reads in the SERVER_NAME and
# ADMIN_URL as positional parameters, sets the SERVER_NAME variable, then
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup