域,集群,管理服务器和被管服务器之间的关系
Weblogic域是一个服务器/集群的管理组,用户可以通过某个中央位置来管理、监控整个服务器域,这个中心就是管理服务器,相对的,受控服务器或者叫被管服务器是指域中除了管理服务器以外的所有的服务器。
Weblogic集群是一个weblogic Server组,在一个集群中的服务器可以获得集群范围的命名服务、负载平衡以及容错等功能。
所以,一个weblogic域可以同时管理多个集群以及多个服务器实例。
另外,还有一个节点管理器的概念,节点管理器是指在物理的机器上运行的一个守护进程,通过它,管理服务器可以获得诸如在控制台中强制重启远程机器上的server等功能(没有节点管理器的情况下也是可以强制关闭远程服务器的,但是不能重启)。
本例测试域的规划
Ip/port
server
注释
192.168.0.222:9001
myServer
管理服务器
192.168.0.100:9001
new_server_1
被管服务器1
192.168.0.101:9001
new_server_2
被管服务器2
配置过程:
1. /root/Weblogic/platform813_linux32.bin
2. cd /root/bea/weblogic81/common/bin/
3. ./config.sh
a. create a new Weblogic configuration ===>next
b. Select a configuration Template =>
Basic Weblogic server domain ===>next
c. custom ===>next
d. *name: myserver
listen address: 192.168.0.222
listen port: 9001
ssl listen port: 9002
e. Managed server,clusters,and Machines Options
f. configure Managed servers
new_server_1 192.168.0.100 9001 9002
new_server_2 192.168.0.101 9001 9002
===>next
g. configure clusters
new_cluster_1 237.0.0.1 7001 192.168.0.100:9001,192.168.0.101:9001
注意: 端口 7001 与 9001 不能设置为同样端口
===>next
h. Assign servers to clusters
new_server_1 和 new_server_2 加入到右侧 new_cluster_1 中
===>next
k. configure Machines
u1 nobody nobody 192.168.0.100 5555
u2 nobody nobody 192.168.0.101 5555
===>next
l. Assigh server to Machines
new_server_1 和 new_server_2 分别对应加入到右测 u1 和 u2 中
myserver 保留在左侧中
===>next
m. database (JDBC) options ===>next
n. Messaging (JMS) options ===>next
o. configure Administrative username and password
*username: weblogic
*user password: 12345678
configure additional users,groups,and global roles.
===>next
p. configure server start mode and java SDK
右测: java SDK selection => BEA supplied SDKs
1.4.2_04@/root/bea/jdk142_04>
===>next
q. create weblogic configuration
configuration name: domainserver
===>create
r. Done 安装完毕
4. /root/bea/user_projects/domains/domainserver/startWebLogic.sh & # 管理端机器,开启服务
5.
[url]http://192.168.0.222:9001/console[/url]
# 进入浏览器中测试
Username: weblogic
Password: 12345678
6. scp -r 192.168.0.222:/root/bea /root # 在成员机器上执行这个,把主机的webloglc安装目录全部拷贝
7. cd /root/bea/user_projects/domains/domainserver/
./startManagedWebLogic.sh
[url]http://192.168.0.100:9001[/url]
# 成员机器开启集群服务