Linux环境下搭建WebLogic 10.3.6集群服务十步曲
- 格式:docx
- 大小:1.13 MB
- 文档页数:47
Weblogic10.3.6部署Weblogic部署1.配置服务器weblogic所需的相关参数#关闭防火墙[root@localhost ~]#service iptables stop#使用vi编辑当前文件[root@localhost ~]# vi /etc/sysconfig/network#把以下内容覆盖进去,注意更改自己的主机名NETWORKING=yesNETWORKING_IPV6=yes#HOSTNAME=localhost.localdomainHOSTNAME=主机名编辑完成后按Esc键,输入“:wq”存盘退出[root@localhost ~]# vi /etc/hosts#添加自己的ip和域名如下127.0.0.1 localhost.localdomain localhost::1 localhost6.localdomain6 localhost610.185.4.216 域名编辑完成后按Esc键,输入“:wq”存盘退出[root@localhost ~]# vi /etc/sysctl.conf#修改linux内核,把以下配置复制进去,如有特殊配置需求请自行更改kernel.shmall = 4294967296kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6815744fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576[root@localhost ~]# cd /etc编辑完成后按Esc键,输入“:wq”存盘退出#使当前配置生效[root@localhost etc]# sysctl –p[root@localhost etc]#vi /etc/security/limits.conf#把以下内容复制到当前文件weblogic soft nofile 100000weblogic hard nofile 100000编辑完成后按Esc键,输入“:wq”存盘退出[root@localhost etc]# vi /etc/pam.d/login#把以下内容复制到当前文件session required /lib/security/pam_limits.sosession required pam_limits.so编辑完成后按Esc键,输入“:wq”存盘退出2.添加weblogic组和用户#添加用户组和用户[root@localhost etc]# groupadd -g 600 weblogic[root@localhost etc]# useradd -u 600 -g 600 weblogic#在根目录下创建/app/weblogic目录[root@localhost etc]#mkdir –p /app/weblogic#为目录更改属组[root@localhost etc]# chown -R weblogic:weblogic /app/weblogic#更改weblogic用户密码[root@localhost etc]#passwd weblogic3.安装JDK#把jdk文件提前传到linux服务器上#复制文件到/usr/local[root@localhost dzpj]# cp jdk-6u30-linux-x64-rpm.bin /usr/local#进入/usr/local目录[root@localhost dzpj]# cd /usr/local/#为jdk文件增加执行权限[root@localhost local]# chmod +x jdk-6u30-linux-x64-rpm.bin#安装jdk文件[root@localhost local]# ./jdk-6u30-linux-x64-rpm.bin#编辑/etc/profile文件配置jdk环境变量[root@localhost local]#vi /etc/profile#根据自己的bin目录位置配置,也可复制以下内容JAVA_HOME=/usr/java/jdk1.7.0_80CLASSPATH=.:$JAVA_HOME/lib.tools.jarPATH=$JAVA_HOME/bin:$PATHexport JAVA_HOME CLASSPATH PATH#执行以下命令[root@localhost local]# export JAVA_HOME=/usr/java/jdk1.6.0_30 [root@localhost local]# export CLASSPATH=.:$JAVA_HOME/lib.tools.jar [root@localhost local]# export PATH=$JAVA_HOME/bin:$PATH#查看当前jdk版本是否与安装版本一致[root@localhost local]# java –version4.安装weblogic#开启图形化安装[root@localhost ~]#xhost +#启动vncserver初次启动会设置密码,如系统没安装vnc请自行去下载或在系统镜像文件中#查找安装包,并安装[root@localhost ~]#vncserver#通过vnc连接应用服务器#用root提前把weblogic包传到/media,并修改包的属组为weblogic[root@localhost media]# chown -R weblogic:weblogic wls1036_generic.jar#切换到weblogic用户,进入目录/media,执行java –jar -d64 wls1036_generic.jar[root@localhost media]#su – weblogic[root@localhost media]#cd /media[root@localhost media]# java –jar -d64 wls1036_generic.jar点击next更改为/app点击next点击next点击yes选择I wish to remain ……,点击continue按钮:点next更改为自己的/app/weblogic目录点next点next点next点击Done按钮,完成安装,进入配置向导界面。
Linux系统下安装weblogic详细步骤1、环境探查与准备 安装jdk和weblogic前需要对进⾏安装的linux系统硬件和软件环境进⾏探查确认,以确保⽀持对jdk1.8和weblogic12.2.1.4的安装。
weblogic12.2.1.4对于jdk及linux操作系统版本的要求在oracle官⽹上⾯有详细的详细全⾯介绍,可⾃⼰进⾏。
安装weblogic前需要安装好jdk1.8,这⾥就不详细叙述了。
2、安装weblogic在官⽹下载linux版本压缩包fmw_12.2.1.4.0_wls_lite_generic.zip,解压通过Xftp上传jar包到/usr/local/weblogic12⽂件夹下2.1 创建weblogic⽤户和组web[root@lin-16core1 ~]# groupadd web[root@lin-16core1 ~]# useradd -g web weblogic[root@lin-16core1 ~]# passwd weblogic2.2 切换⽤户进⾏安装su weblogic2.3 创建响应⽂件 wls.rsp最好放在/home/weblogic的⽬录下⾯⽽不是usr⽬录下⾯,否则会导致创建域的权限问题在/home/weblogic⽬录下确保有如下两个⽂件并做相应的配置,否则安装时候回报各种难以预知的错误。
[ENGINE]#DO NOT CHANGE THIS.Response File Version=1.0.0.0.0[GENERIC]#The oracle home location. This can be an existing Oracle Home or a new Oracle Home insure having all dir read and write authorityORACLE_HOME=/usr/local/weblogic12/wlsInstall#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.INSTALL_TYPE=WebLogic Server#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.MYORACLESUPPORT_USERNAME=#Provide the My Oracle Support PasswordMYORACLESUPPORT_PASSWORD=<SECURE VALUE>#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration DECLINE_SECURITY_UPDATES=true#Set this to true if My Oracle Support Password is specifiedSECURITY_UPDATES_VIA_MYORACLESUPPORT=false#Provide the Proxy HostPROXY_HOST=#Provide the Proxy PortPROXY_PORT=#Provide the Proxy UsernamePROXY_USER=#Provide the Proxy PasswordPROXY_PWD=<SECURE VALUE>#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]COLLECTOR_SUPPORTHUB_URL=备注:wls.rsp⽂件中需要修改的信息如下:ORACLE_HOME=/usr/local/weblogic12/wlsInstall (表⽰weblogic的安装⽬录) 响应⽂件中信息的编写,否则会报奇怪的错误2.4 创建Loc⽂件 oraInst.locinventory_loc=/home/weblogic/oraInventoryinst_group=web备注:oraInts.loc⽂件中修改如下信息:inventory_loc=/home/weblogic/oraInventory (表⽰产品清单⽬录)inst_group=web (web表⽰weblogic⽤户所在的组名,查看⽤户所属组的命令: groups)2.5 保证所需要的⽬录weblogic⽤户要⽤读写权限oraInst.loc,wls.rsp,fmw_12.2.1.4.0_wls_lite_generic.jar⽂件⽤户weblogic必须要有读写权限2.6 安装weblogic[weblogic@lin-16core1 root]$ cd /usr/local/weblogic12/[weblogic@lin-16core1 root]$ java -jar fmw_12.2.1.4.0_wls_lite_generic.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc ⾄此weblogic的安装即完成3、创建域basicWLSDomain3.1 配置环境变量先创建⽂件夹⽬录执⾏setWLSEnv.sh 来配置环境变量[weblogic@lin-16core1 root]$ /usr/local/weblogic12/wlsInstall/wlserver/server/bin/setWLSEnv.sh3.2 将basicWLSDomain.py复制到 /usr/local/weblogic12/wlsInstall/user_projects/domains/pyfile ⽬录下[weblogic@lin-16core1 root]$ cd /usr/local/weblogic12/wlsInstall/user_projects/domains/pyfile[weblogic@lin-16core1 root]$ cp /usr/local/weblogic12/wlsInstall/wlserver/common/templates/scripts/wlst/basicWLSDomain.py修改basicWLSDomain.py⽂件中的如下信息:1)确定该服务的监听端⼝7001cd('Servers/AdminServer')set('ListenAddress','')set('ListenPort', 7001)2)确定weblogic控制台的登录密码cd('/')cd('Security/base_domain/User/weblogic')cmo.setPassword('weblogic123')3)确定域名basicWLSDomain域名setOption('OverwriteDomain', 'true')writeDomain('/usr/local/weblogic12/wlsInstall/wlserver/../user_projects/domains/basicWLSDomain')closeTemplate()3.3 执⾏basicWLSDomain.py进⾏域的创建[weblogic@lin-16core1 pyfile]$ /usr/local/weblogic12/wlsInstall/oracle_common/common/bin/wlst.sh basicWLSDomain.py出现如下信息表⽰安装成功:Initializing WebLogic Scripting Tool (WLST) ...Welcome to WebLogic Server Administration Scripting ShellType help() for help on available commandsExiting WebLogic Scripting Tool.3.4 启动服务进⼊ /usr/local/weblogic12/wlsInstall/user_projects/domains/basicWLSDomain/bin ⽬录下启动(前台启动),命令:./startWebLogic.sh启动(后台运⾏),命令:./startWebLogic.sh &关闭,命令:./stopWebLogic.sh3.5 静默卸载weblogic进⼊ /usr/local/weblogic12/wlsInstall/oui/bin ⽬录下执⾏命令:./deinstall.sh -silent总结:实践是检验真理的唯⼀标准,亲测可⽤。
Weblogic 集群搭建Oracle的Weblogic分开发者版本和生产版本,有32位和64位。
一般生产版本的weblogic是64位的,安装文件是一个大小为1G多的jar包。
去oracle官网上下载64版weblogic。
这里使用的版本是weblogic11g,版本号是10.3.6,文件名为“wls1036_generic.jar”。
安装weblogic前要确认已安装好jdk(如果安装的是64位weblogic则需要64位版本的jdk)。
目前,weblogic可免费使用,需要oracle的weblogic服务时才需要向Oracle付费买服务,即产品免费服务收费。
一、安装weblogic(windows和Linux操作步骤相同)1、在命令行,进入安装文件wls1036_generic.jar所在文件夹然后输入命令:Java -jar wls1036_generic.jar点击回车后程序会启动weblogic安装文件的图形安装界面。
按下来的安装和在windows中安装普通文件一样了。
2、点击“下一步”,到下图界面,然后输入weblogic的安装目录。
(路径中最好不要有空格)3、点击“下一步”。
到下图界面,由于我们没有购买oracle的服务所以去掉下图中的勾。
(目前weblogic可免费使用,需要oracle技术支持的话才需要付费)4、点击“下一步”,到下图界面,会因为我们没有填写上图的的支持信息而弹出两个警告框,直接“YES”通过即可。
进入下图,勾选下面的框(不需要使用验证)5、然后点击“继续”。
到下图界面,选择“典型”和“定制”都可以,根据自己喜好设置6、选择后点击“下一步”,进入下图界面,如果没有显示jdk信息,则手动点击“浏览”选择自己机器上安装的jdk,一般默认显示出来的就已经是自己机口上安装的了(貌似是根据环境变量里的JAVA_HOME获取的)7、点击“下一步”进入下图界面,不用修改,直接点击“下一步”即可8、然后会显示出我们准备安装的组件信息,直接点击“下一步”9、然后就开始安装了10、安装完成了,这里有勾选“运行Quickstart”表示安装完成后打开域创建和配置界面。
Linux下Weblogic集群配置初步域,集群,管理服务器和被管服务器之间的关系Weblogic域是一个服务器/集群的管理组,用户可以通过某个中央位置来管理、监控整个服务器域,这个中心就是管理服务器,相对的,受控服务器或者叫被管服务器是指域中除了管理服务器以外的所有的服务器。
Weblogic集群是一个weblogic Server组,在一个集群中的服务器可以获得集群范围的命名服务、负载平衡以及容错等功能。
所以,一个weblogic域可以同时管理多个集群以及多个服务器实例。
另外,还有一个节点管理器的概念,节点管理器是指在物理的机器上运行的一个守护进程,通过它,管理服务器可以获得诸如在控制台中强制重启远程机器上的server等功能(没有节点管理器的情况下也是可以强制关闭远程服务器的,但是不能重启)。
除此之外,据说节点管理器还可以自动检查自己机器上的server实例(健康检查),当发现某个实例出现故障的时候,可以自动进行重启,这个没试过。
注意事项1.本文的weblogic均配置在linux环境下2.集群中管理服务器和被管服务器之间有用到ip组播UDP,所以这些服务器之间必须是UDP可以到达的。
3.好像动态ip的机器不能用于集群当中4.最佳实践说:请不要把管理服务器设置在集群当中5.本文所配置的集群只是实现了web层次上的负载平衡和容错,也就是servlet和jsp,其他的j2ee组件如ejb,jdbc,jms等都可以集群化。
本例测试域的规划Ip/port server 注释10.21.18.40:7001 adminServer 管理服务器10.21.18.40:7003 mServer1 被管服务器110.21.18.41:7001 mServer2 被管服务器210.21.18.40:7004 proxyServer 代理服务器配置过程建立管理服务器启动linux下的配置向导进入bea目录下的weblogic81/common/bin目录输入./config.sh,这里使用的终端登陆,所以没有图形环境,程序会以控制台模式启动第一步:选择建立新的域:启动配置向导后,系统提示如下:<------- 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 throughthe 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录入1回车,建立一个新的域。
非税系统安装过程及遇到问题后的解决办法概述目前weblogic系统中包含四台主机,226、227、229、231,每台主机上运行4-6个weblogic server,共16个。
都为单server模式,应用部署在adminserver上,共16个域。
因为管理和部署不方便,用户因此想重建系统,在一个Domain里进行统一管理。
系统架构图原系统环境226/227/229操作系统:Linux Weblogic版本:10.3.6 JDK版本:Sun 1.6.0.31231操作系统:Linux Weblogic版本:10.3.4 JDK版本:Sun 1.6.0.32安装过程1.231主机上新装weblogic10.3.6及1.6.0.31JDK,保证同一个域里软件版本一致。
2.在新建domain的控制台上新建所有的16个server3.新建4个machine,并且把新建的server按照原来的部署方案添加分配到4个machine中。
4.每个server的listen address改为对应主机的IP地址,防止多个监听地址引起的通信问题。
5. Node Manager的监听地址要改为对应主机的IP地址。
6. 去除HostName验证,域中Admin Server以及使用Node Manager启停的受管Server都需要设置。
7. 配置使用节点管理器启停的被管Server启动参数8.在使用nodemanager启动被管server前,使用命令方式启动启动一次被管server,目的是创建server目录,为以后nodemanger启动写入servers/servername/data/nodemanger/nodemanager.properties文件中一些相关的信息做准备。
9.重启域中所有的weblogic server,启动每台主机上的nodemanager server。
10.在控制台中观察nodemanager server的状态,如果为Reachable,表明节点管理器可以正常工作,如果为Unreachable状态,说明配置有问题。
Weblogic 10.3.6安装步骤1、下载安装包/technetwork/cn/middleware/weblogic/downloads/wls-main-091116-zhs .html2、wls1036_linux32.bin安装包放入服务器,开始安装(安装目录:/home/weblogic/ora):给安装文件wls1036_linux32.bin权限运行./ wls1036_linux32.bin,进入图形安装界面,点击【next】3、选择Create a new Middleware Home方式,安装目录为/home/weblogic/Oracle/Middleware/,点击【next】4、注册,不选中复选框,点击【next】5、选择安装类型,type,点击【next】6、选择中间件、eblogic和oracle相关的目录,点击【next】7、weblogic的安装大纲,点击【next】8、开始安装9、完成安装Weblogic 配置建立Weblogic domian进入目录,运行./config.sh[root@oracle bin]# cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin/ [root@oracle bin]# ./config.sh1、开始画面,选择新建一个weblogic域,点击【next】2、根据实际情况修改域名称base_domain,点击【next】;3、输入管理员weblogic,密码设置root1234,点击【next】;4、选择模式,提供两种模式,开发模式和生产模式,这里我们选择生产模式,点击【next】;5、忽略高级选项,点击【next】;6、创建配置概要,点击【create】;7、完成安装8、启动服务器[root@oracle domains]# cd/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/[root@oracle bin]# ./startWebLogic.sh启动完成之后,可以进入管理员控制台部署web项目等操作,账号为weblogic,密码:root1234,网址为:http://localhost:7001/console或者http://192.168.100.197:7001/consolo进行数据的配置.。
Linux环境下搭建WebLogic1036集群服务十步曲培训资料步骤一:下载WebLogic安装包访问Oracle官方网站,下载WebLogic的安装包。
确保您选择了适用于Linux系统的版本。
步骤二:安装Java Development Kit(JDK)在Linux系统上安装JDK,WebLogic需要Java环境来运行。
您可以从Oracle官方网站下载最新的JDK安装包,并按照官方文档进行安装。
步骤三:解压WebLogic安装包使用解压工具,将WebLogic安装包解压到您选择的目录中,并进入解压后的目录。
步骤四:运行配置工具运行配置工具,它位于解压后的目录中。
根据提示,选择创建新的WebLogic域,并设置集群名称、管理员用户名和密码等。
步骤五:创建WebLogic域根据配置工具的提示,创建WebLogic域。
在此过程中,您需要指定域的名称、设置域的类型(集群型)以及其他相关设置。
步骤六:创建管理服务器在创建WebLogic域的过程中,您需要指定一个管理服务器的配置。
请确保指定的服务器是启用管理的。
步骤七:创建集群在WebLogic控制台中,选择创建一个新的集群,并指定集群的名称、可扩展性等级和其他相关配置。
步骤八:创建集群中的服务器选择集群,然后在控制台中创建一些服务器。
这些服务器将成为您集群中的节点,并用于部署应用程序。
步骤九:配置集群在集群配置中,您可以设置集群的故障恢复行为、负载均衡策略等。
根据您的需求,进行相应的配置。
步骤十:部署应用程序最后,将您的应用程序部署到WebLogic集群中的服务器上。
您可以使用WebLogic控制台或命令行工具来完成此操作。
以上是在Linux环境下搭建WebLogic1036集群服务的十个步骤。
当然,在实际搭建过程中,还可能会遇到各种挑战和问题。
因此,建议您参考WebLogic官方文档和社区论坛,以获取更详细的指导和支持。
继续写相关内容:步骤一:下载WebLogic安装包在Linux环境下搭建WebLogic集群之前,首先需要从Oracle官方网站下载WebLogic的安装包。
Weblogic10集群负载均衡安装和配置1、集群系统架构操作系统: linux as4 u8Weblogic版本 Weblogic10注意:有工作流或MQ时要单独安装,不要放到集群中2、系统整体架构2.1、Weblogic方案:(建议服务器有4G以上的内存)一台管理服务器:安装weblogic10 管理节点、受管节点。
二至五台应用服务器节点:安装Weblogic10 受管节点。
一台工作流服务器:安装WebSphere Application Server。
一台MQ服务器:安装WebSphere Application Server。
2.2、本例中的部署如下所示:管理节点和受管节点安装在主机 JWZHYY1,另一个受管节点单独安装主机名为JWZHYY2,组成一个集群,通过代理服务器来完成负载均衡。
3、集群的安装3.1、安装集群的先决条件注意,必须在每个服务器中编辑/etc/hosts文件使群集的服务器之间能够互相使用机器名访问。
保证每一台应用服务器都可以使用ping 群集应用服务器名称来访问,实例文件/etc/hosts内容如下127.0.0.1 localhost.localdomain localhost #本机192.168.1.3 jwzhyy1 #节点1192.168.1.4 jwzhyy2 #节点2192.168.1.8 jwzhdb1 #数据库1192.168.1.9 jwzhdb2 #数据库2以 root 用户身份登录并在每个主机上配置 Linux 内核参数。
cat >> /etc/sysctl.conf >>EOFkernel.shmall = 2097152kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=262144net.core.wmem_max=262144EOF/sbin/sysctl -p使用date命令查看每一台机器的系统时间,如果服务器时间相差在五分钟之内,请跳过此步。
Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明概要描述1. 安装前准备篇 (4)1.1. 主机资源规划 (4)1.2. 安装介质准备 (4)2. 平台基础配置篇(双节点) (4)2.1. hosts文件配置 (4)2.2. ulimit参数配置 (4)2.3. Tcp默认连接超时时间配置 (4)3. 用户及权限配置篇(双节点) (4)3.1. 新增weblogic组及用户 (4)3.2. 修改目录所有者权限 (5)4. 节点1安装篇 (5)4.1. 安装jrockit jdk (5)4.1.1. 修改文件执行权限 (5)4.1.2. 执行安装文件 (5)4.1.3. 设置jrockit-jdk安装目录 (5)4.1.4. 确认安装 (5)4.1.5. 验证是否已安装成功 (6)4.2. 安装Weblogic (6)4.2.1. 执行安装文件 (6)4.2.2. 设置中间件安装主目录 (6)4.2.3. 设置是否接收安全更新(不接收) (6)4.2.4. 选择安装内容(只安装Weblogic Server) (7)4.2.5. 选择JDK (9)4.2.6. 确认WebLogic安装目录 (9)4.2.7. 验证是否已安装成功 (11)5. 节点1配置篇 (11)5.1. 新建应用domain域 (11)5.1.1. 执行weblogic配置向导文件 (11)5.1.2. 选择新建或者扩展域(选择新建) (12)5.1.3. 选择域控件或者模版(选择控件) (12)5.1.4. 选择应用模版(默认选择Basic WebLogic Server Domain) (12)5.1.5. 编辑域名称信息 (13)5.1.6. 配置管理员用户及密码 (13)5.1.7. 配置域模式(选择2生产模式) (14)5.1.8. 选择JDK(选择JRockit JDK) (14)5.1.9. 配置管理服务器 (14)5.1.10. 创建域 (16)5.1.11. 查看域创建日志,检查域是否创建成功 (16)5.1.12. 启动域,验证管理服务器是否配置成功 (17)5.1.13. IE登录域控制台 (18)5.2. 环境参数配置 (18)5.2.1. Java.security安全策略文件配置 (18)5.2.2. 域内存参数配置 (19)5.2.3. 域JAVA_OPTIONS参数配置 (19)5.3. 管理服务器(AdminServer)配置 (20)5.3.1. 密钥文件配置 (20)5.3.2. 启动脚本配置 (20)5.4. 计算机(Machine)配置 (21)5.5. 应用集群(Cluster)配置 (22)5.6. 节点管理器(nodemanager)配置 (23)5.6.1. 配置startNodeManager.sh启动脚本 (23)5.6.2. 设置管理服务器主机名验证为“无” (24)5.7. 被管理服务器(ManagedServer)配置 (24)5.7.1. 服务器配置 (24)5.7.2. 密钥文件配置 (29)5.7.3. 启动脚本配置 (29)6. 节点2安装配置篇 (29)6.1. 拷贝节点1的jrockit jdk安装及配置 (29)6.2. 拷贝节点1的weblogic安装及配置 (29)6.3. 克隆节点1的被管理服务器配置 (29)6.4. 移除节点2上的管理服务器启动脚本 (31)6.5. 移除节点2上的服务启动日志信息 (31)6.6. 修改节点2被管理服务器启动脚本 (31)6.7. 配置节点2被管理服务器密钥文件 (32)7. 部署篇 (32)7.1. 数据源配置 (32)7.1.1. 新建数据源 (32)7.1.2. 数据源参数调优 (36)7.2. 应用部署 (38)7.2.1. 上传应用程序文件 (38)7.2.2. 部署应用 (38)8. 服务启动/查看状态/停止篇 (42)8.1. 启动服务 (42)8.1.1. 启动管理服务器 (42)8.1.2. 启动节点服务器 (43)8.1.3. 启动被管理服务器 (44)8.2. 查看/停止服务 (45)8.2.1. 查看/停止管理服务器 (45)8.2.2. 查看/停止节点服务器 (45)8.2.3. 查看/停止被管理服务器 (45)9. 安全防护篇 (46)9.1. Java反序列化安全漏洞修复 (46)10. FAQ篇 (47)10.1. 在weblogic控制台启动Server1时,报<BEA-000110> <Multicast socket receiveerror 471.安装前准备篇的名称及端口。
Linux环境下搭建WebLogic1036集群服务十步曲Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明版本日期作者说明V1.0 2017-03-26 王林初稿财概要描述WebLowls1036_generic.jargicJDK jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binDataB11gaseOS Linux Redhat 6.5 64位1.安装前准备篇 (11)1.1.主机资源规划111.2.安装介质准备112.平台基础配置篇(双节点) (12)2.1.hosts文件配置122.2.ulimit参数配置132.3.Tcp默认连接超时时间配置133.用户及权限配置篇(双节点) (13)3.1.新增weblogic组及用户143.2.修改目录所有者权限144.节点1安装篇 (14)4.1.安装jrockit jdk144.1.1.修改文件执行权限144.1.2.执行安装文件144.1.3.设置jrockit-jdk安装目录164.1.4.确认安装174.1.5.验证是否已安装成功194.2.安装Weblogic194.2.1.执行安装文件194.2.2.设置中间件安装主目录194.2.3.设置是否接收安全更新(不接收) (20)4.2.4.选择安装内容(只安装WeblogicServer) (21)4.2.5.选择JDK274.2.6.确认WebLogic安装目录284.2.7.验证是否已安装成功335.节点1配置篇 (36)5.1.新建应用domain域365.1.1.执行weblogic配置向导文件365.1.2.选择新建或者扩展域(选择新建) (36)5.1.3.选择域控件或者模版(选择控件) (37)5.1.4.选择应用模版(默认选择BasicWebLogic Server Domain) (39)5.1.5.编辑域名称信息405.1.6.配置管理员用户及密码415.1.7.配置域模式(选择2生产模式)435.1.8.选择JDK(选择JRockit JDK)445.1.9.配置管理服务器445.1.10.创建域505.1.11.查看域创建日志,检查域是否创建成功 (51)5.1.12.启动域,验证管理服务器是否配置成功 (54)5.1.13.IE登录域控制台575.2.环境参数配置575.2.1.Java.security安全策略文件配置 (57)5.2.2.域内存参数配置585.2.3.域JAVA_OPTIONS参数配置615.3.管理服务器(AdminServer)配置625.3.1.密钥文件配置635.3.2.启动脚本配置635.4.计算机(Machine)配置645.5.应用集群(Cluster)配置665.6.节点管理器(nodemanager)配置675.6.1.配置startNodeManager.sh启动脚本 (67)5.6.2.设置管理服务器主机名验证为“无” (69)5.7.被管理服务器(ManagedServer)配置695.7.1.服务器配置695.7.2.密钥文件配置745.7.3.启动脚本配置756.节点2安装配置篇 (76)6.1.拷贝节点1的jrockit jdk安装及配置766.2.拷贝节点1的weblogic安装及配置766.3.克隆节点1的被管理服务器配置766.4.移除节点2上的管理服务器启动脚本786.5.移除节点2上的服务启动日志信息796.6.修改节点2被管理服务器启动脚本796.7.配置节点2被管理服务器密钥文件807.部署篇 (81)7.1.数据源配置817.1.1.新建数据源817.1.2.数据源参数调优857.2.应用部署877.2.1.上传应用程序文件877.2.2.部署应用878.服务启动/查看状态/停止篇 (92)8.1.启动服务928.1.1.启动管理服务器928.1.2.启动节点服务器958.1.3.启动被管理服务器978.2.查看/停止服务1008.2.1.查看/停止管理服务器1008.2.2.查看/停止节点服务器1018.2.3.查看/停止被管理服务器1029.安全防护篇 (105)9.1.Java反序列化安全漏洞修复10510.FAQ篇 (105)10.1.在weblogic控制台启动Server1时,报<BEA-000110> <Multicast socket receive error (105)1.安装前准备篇1.1.主机资源规划主机IP 主机名称管理服务器及端口被管理服务器及端口10.140.3 0.51 po9kcfap901AdminServer/7001Server1/808010.140.3 0.52 po9kcfap902Server2/8080双主机,配置为集群服务,其中管理服务器配置在第一个节点上,节点管理器使用默认的名称及端口。
Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明概要描述1. 安装前准备篇 (4)1.1. 主机资源规划 (4)1.2. 安装介质准备 (4)2. 平台基础配置篇(双节点) (4)2.1. hosts文件配置 (4)2.2. ulimit参数配置 (4)2.3. Tcp默认连接超时时间配置 (4)3. 用户及权限配置篇(双节点) (4)3.1. 新增weblogic组及用户 (4)3.2. 修改目录所有者权限 (5)4. 节点1安装篇 (5)4.1. 安装jrockit jdk (5)4.1.1. 修改文件执行权限 (5)4.1.2. 执行安装文件 (5)4.1.3. 设置jrockit-jdk安装目录 (5)4.1.4. 确认安装 (5)4.1.5. 验证是否已安装成功 (6)4.2. 安装Weblogic (6)4.2.1. 执行安装文件 (6)4.2.2. 设置中间件安装主目录 (6)4.2.3. 设置是否接收安全更新(不接收) (6)4.2.4. 选择安装内容(只安装Weblogic Server) (7)4.2.5. 选择JDK (9)4.2.6. 确认WebLogic安装目录 (9)4.2.7. 验证是否已安装成功 (11)5. 节点1配置篇 (11)5.1. 新建应用domain域 (11)5.1.1. 执行weblogic配置向导文件 (11)5.1.2. 选择新建或者扩展域(选择新建) (12)5.1.3. 选择域控件或者模版(选择控件) (12)5.1.4. 选择应用模版(默认选择Basic WebLogic Server Domain) (12)5.1.5. 编辑域名称信息 (13)5.1.6. 配置管理员用户及密码 (13)5.1.7. 配置域模式(选择2生产模式) (14)5.1.8. 选择JDK(选择JRockit JDK) (14)5.1.9. 配置管理服务器 (14)5.1.10. 创建域 (16)5.1.11. 查看域创建日志,检查域是否创建成功 (16)5.1.12. 启动域,验证管理服务器是否配置成功 (17)5.1.13. IE登录域控制台 (18)5.2. 环境参数配置 (18)5.2.1. Java.security安全策略文件配置 (18)5.2.2. 域内存参数配置 (19)5.2.3. 域JAVA_OPTIONS参数配置 (19)5.3. 管理服务器(AdminServer)配置 (20)5.3.1. 密钥文件配置 (20)5.3.2. 启动脚本配置 (20)5.4. 计算机(Machine)配置 (21)5.5. 应用集群(Cluster)配置 (22)5.6. 节点管理器(nodemanager)配置 (23)5.6.1. 配置startNodeManager.sh启动脚本 (23)5.6.2. 设置管理服务器主机名验证为“无” (24)5.7. 被管理服务器(ManagedServer)配置 (24)5.7.1. 服务器配置 (24)5.7.2. 密钥文件配置 (29)5.7.3. 启动脚本配置 (29)6. 节点2安装配置篇 (29)6.1. 拷贝节点1的jrockit jdk安装及配置 (29)6.2. 拷贝节点1的weblogic安装及配置 (29)6.3. 克隆节点1的被管理服务器配置 (29)6.4. 移除节点2上的管理服务器启动脚本 (31)6.5. 移除节点2上的服务启动日志信息 (31)6.6. 修改节点2被管理服务器启动脚本 (31)6.7. 配置节点2被管理服务器密钥文件 (32)7. 部署篇 (32)7.1. 数据源配置 (32)7.1.1. 新建数据源 (32)7.1.2. 数据源参数调优 (36)7.2. 应用部署 (38)7.2.1. 上传应用程序文件 (38)7.2.2. 部署应用 (38)8. 服务启动/查看状态/停止篇 (42)8.1. 启动服务 (42)8.1.1. 启动管理服务器 (42)8.1.2. 启动节点服务器 (43)8.1.3. 启动被管理服务器 (44)8.2. 查看/停止服务 (45)8.2.1. 查看/停止管理服务器 (45)8.2.2. 查看/停止节点服务器 (45)8.2.3. 查看/停止被管理服务器 (45)9. 安全防护篇 (46)9.1. Java反序列化安全漏洞修复 (46)10. FAQ篇 (47)10.1. 在weblogic控制台启动Server1时,报<BEA-000110><Multicast socket receiveerror 471.安装前准备篇的名称及端口。
1.2.安装介质准备JDK,使用jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binWeblogic,使用wls1036_generic.jar1.3.安装路径规划JDK安装路径,/app/jrockit-jdkWeblogic安装路径,/app/Oracle/Middleware域安装路径,/app/Oracle/Middleware/user_projects/domains/base_domain2.平台基础配置篇(双节点)--以下三点,均通过root用户配置2.1.hosts文件配置双节点主机hosts文件,都加上两台主机名称与IP对应关系[weblogic@po9kcfap901 ~]$ cat /etc/hosts127.0.0.1 localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain610.140.30.51 po9kcfap90110.140.30.52 po9kcfap902[weblogic@po9kcfap901 ~]$2.2.ulimit参数配置--在limits.conf文件中增加nofile、nproc参数配置vi /etc/security/limits.conf* softnofile 102400* hardnofile 102400* softnproc 102400* hardnproc 102400--注释90-nproc.conf文件里面*用户nproc参数配置vi /etc/security/limits.d/90-nproc.conf#* soft nproc 1024002.3.Tcp默认连接超时时间配置[root@po9kcfap901 ~]# sysctl -w net.ipv4.tcp_fin_timeout=30net.ipv4.tcp_fin_timeout = 30[root@po9kcfap901 ~]#3.用户及权限配置篇(双节点)3.1.新增weblogic组及用户[root@po9kcfap901 ~]# groupaddweblogic[root@po9kcfap901 ~]# useradd -g weblogicweblogic3.2.修改目录所有者权限[root@po9kcfap901 /]# chown -R weblogic:weblogic /app[root@po9kcfap901 /]# chown -R weblogic:weblogic /msscpmis_app4.节点1安装篇4.1.安装jrockitjdk4.1.1.修改文件执行权限chmoda+x /home/weblogic/software/jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin4.1.2.执行安装文件[weblogic@po9kcfap901 software]$ ./jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binExtracting 0%....................................................................................................100%Unable to instantiate GUI, defaulting to console mode.<---------------------------------------- Oracle JRockit Installer - Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 ---------------------------------------->Welcome:--------This installer will guide you through the installation of Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".Enter [Exit][Next]>4.1.3.设置jrockit-jdk安装目录<---------------------------------------- Oracle JRockit Installer - Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 ---------------------------------------->Choose Product Installation Directory:--------------------------------------"Product Installation Directory" = [/app/jrockit-jdk]Use above value or select another option:1 - Enter new Product Installation Directory2 - Change to default [/home/weblogic/jrockit-jdk1.6.0_45-R28.2.7-4.1.0]Enter option number to select OR [Exit][Previous][Next]>4.1.4.确认安装<---------------------------------------- Oracle JRockit Installer - Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 ---------------------------------------->Installing JRE to /app/jrockit-jdk/jre...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]<---------------------------------------- Oracle JRockit Installer - Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 ---------------------------------------->Installation CompleteCongratulations! Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 has been successfully installed to /app/jrockit-jdk.Press [Enter] to continue or type [Exit]><---------------------------------------- Oracle JRockit Installer - Oracle JRockitJDKR28.2.7 for Java SE 6 with JRMC 4.1 ---------------------------------------->Clean up process in progress ...[weblogic@po9kcfap901 software]$4.1.5.验证是否已安装成功[weblogic@po9kcfap901 bin]$ /app/jrockit-jdk/bin/java -versionjava version "1.6.0_45"Java(TM) SE Runtime Environment (build 1.6.0_45-b06)Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64, compiled mode)[weblogic@po9kcfap901 bin]$4.2.安装Weblogic4.2.1.执行安装文件[weblogic@po9kcfap901 software]$ java -jar wls1036_generic.jar4.2.2.设置中间件安装主目录<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Middleware Home Directory:---------------------------------"Middleware Home" = [/app/Oracle/Middleware]Use above value or select another option:1 - Enter new Middleware Home2 - Change to default [/home/weblogic/Oracle/Middleware]Enter option number to select OR [Exit][Previous][Next]> Next4.2.3.设置是否接收安全更新(不接收)--注:输入3,回车;再输入No,回车;最后再输入Yes,确认不接收,回车<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager.1|Email:[]2|Support Password:[]3|Receive Security Update:[Yes]Enter index number to select OR [Exit][Previous][Next]> 34.2.4.选择安装内容(只安装Weblogic Server)--注:输入2,回车;再输入2,回车;最后再输入Next,只安装WeLogic Server<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Install Type:--------------------Select the type of installation you wish to perform.->1|Typical| Install the following product(s) and component(s):| - WebLogic Server| - Oracle Coherence2|Custom| Choose software products and components to install and perform optional|configuration.Enter index number to select OR [Exit][Previous][Next]> 2<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Products and Components:-------------------------------Release 10.3.6.0|_____WebLogic Server [1] x| |_____Core Application Server [1.1] x| |_____Administration Console [1.2] x| |_____Configuration Wizard and Upgrade Framework [1.3] x| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x| |_____WebLogicSCA [1.5] x| |_____WebLogicJDBC Drivers [1.6] x| |_____Third Party JDBC Drivers [1.7] x| |_____WebLogic Server Clients [1.8] x| |_____WebLogic Web Server Plugins [1.9] x| |_____UDDI and Xquery Support [1.10] x| |_____Server Examples [1.11]| |_____Evaluation Database [1.12] x|_____Oracle Coherence [2] x|_____Coherence Product Files [2.1] x|_____Coherence Examples [2.2]*Estimated size of installation: 690.2 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]><-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Products and Components:-------------------------------Release 10.3.6.0|_____WebLogic Server [1] x| |_____Core Application Server [1.1] x| |_____Administration Console [1.2] x| |_____Configuration Wizard and Upgrade Framework [1.3] x| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x| |_____WebLogicSCA [1.5] x| |_____WebLogicJDBC Drivers [1.6] x| |_____Third Party JDBC Drivers [1.7] x| |_____WebLogic Server Clients [1.8] x| |_____WebLogic Web Server Plugins [1.9] x| |_____UDDI and Xquery Support [1.10] x| |_____Server Examples [1.11] x| |_____Evaluation Database [1.12] x|_____Oracle Coherence [2]|_____Coherence Product Files [2.1]|_____Coherence Examples [2.2]*Estimated size of installation: 744.7 MBEnter number exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]>4.2.5.选择JDK--注:输入1,回车;输入/app/jrockit-jdk,回车;再输入2,把操作系统默认安装的JDK 取消勾选<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK Selection (Any * indicates Oracle Supplied VM):---------------------------------------------------JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed.1|Add Local Jdk2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64[ ]3|/app/jrockit-jdk[x]*Estimated size of installation: 744.7 MBEnter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> Next4.2.6.确认WebLogic安装目录<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Product Installation Directories:----------------------------------------Middleware Home Directory: [/app/Oracle/Middleware]Product Installation Directories:"WebLogic Server" = [Enter new value or use default"/app/Oracle/Middleware/wlserver_10.3"]Enter new WebLogic Server OR [Exit][Previous][Next]> Next<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->The following Products and JDKs will be installed:--------------------------------------------------WebLogic Platform 10.3.6.0|_____WebLogic Server|_____Core Application Server|_____Administration Console|_____Configuration Wizard and Upgrade Framework|_____Web 2.0 HTTP Pub-Sub Server|_____WebLogicSCA|_____WebLogicJDBC Drivers|_____Third Party JDBC Drivers|_____WebLogic Server Clients|_____WebLogic Web Server Plugins|_____UDDI and Xquery Support|_____Server Examples|_____Evaluation Database*Estimated size of installation: 744.8 MBEnter [Exit][Previous][Next]> NextMar 26, 2017 12:11:03 PM java.util.prefs.FileSystemPreferences$1 runINFO: Created user preferences directory.<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installing files..0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Performing String Substitutions...<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Configuring OCM...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Creating Domains...…Mar 26, 2017 12:11:35 PM [THREAD: runScript] com.oracle.cie.domain.script.ScriptExecutor outputINFO: succeed: close template<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installation CompleteCongratulations! Installation is complete.Press [Enter] to continue or type [Exit]><-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Clean up process in progress ...[weblogic@po9kcfap901 bin]$4.2.7.验证是否已安装成功[weblogic@po9kcfap901 logs]$ cat /app/Oracle/Middleware/logs/log.txtMar 26, 2017 12:11:10 PM -- install "WebLogic Platform" 10.3.6.0 at /app/Oracle/Middlewarerelease 10.3.6.0 [Added]|_____Common Infrastructure Engineering 7.4.0.0 [Added]| |_____Uninstall [Added]| |_____Patch Client [Added]| |_____Patch Attachment Facility [Added]| |_____Clone Facility [Added]|_____WebLogic Server 10.3.6.0 [Added]| |_____Core Application Server [Added]| |_____Administration Console [Added]| |_____Configuration Wizard and Upgrade Framework [Added]| |_____Web 2.0 HTTP Pub-Sub Server [Added]| |_____WebLogicSCA [Added]| |_____WebLogicJDBC Drivers [Added]| |_____Third Party JDBC Drivers [Added]| |_____WebLogic Server Clients [Added]| |_____WebLogic Web Server Plugins [Added]| |_____UDDI and Xquery Support [Added]| |_____Server Examples [Added]| |_____Evaluation Database [Added]| |_____Workshop Code Completion Support [Added]|_____Oracle Configuration Manager 10.3.5.0 [Added]| |_____Data Collector [Added]|_____Oracle Coherence 3.7.1.1 [Not Installed]|_____Coherence Product Files [Not Installed]|_____Coherence Examples [Not Installed][weblogic@po9kcfap901 logs]$5.节点1配置篇5.1.新建应用domain域--注:只需在节点1上新建domain域5.1.1.执行weblogic配置向导文件[weblogic@po9kcfap901bin]$ /app/Oracle/Middleware/wlserver_10.3/common/bin/config.shUnable to instantiate GUI, defaulting to console mode.<------------------- Fusion Middleware Configuration Wizard ------------------>Welcome:--------5.1.2.选择新建或者扩展域(选择新建)Choose between creating and extending a domain. Based on your selection,the Configuration Wizard guides you through the steps to generate a new orextend an existing domain.->1|Create a new WebLogic domain| Create a WebLogic domain in your projects directory.2|Extend an existing WebLogic domain| Use this option to add new components to an existing domain and modify |configuration settings.Enter index number to select OR [Exit][Next]>5.1.3.选择域控件或者模版(选择控件)<------------------- Fusion Middleware Configuration Wizard ------------------>Select Domain Source:---------------------Select the source from which the domain will be created. You can create thedomain by selecting from the required components or by selecting from alist of existing domain templates.->1|ChooseWeblogic Platform components| You can choose the Weblogic component(s) that you want supported in |your domain.2|Choose custom template| Choose this option if you want to use an existing template. This|could be a custom created template using the Template Builder.Enter index number to select OR [Exit][Previous][Next]> Next5.1.4.选择应用模版(默认选择BasicWebLogic Server Domain)<------------------- Fusion Middleware Configuration Wizard ------------------>Application Template Selection:-------------------------------Available Templates|_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x|_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next5.1.5.编辑域名称信息<------------------- Fusion Middleware Configuration Wizard ------------------>Edit Domain Information:------------------------| Name | Value |_|________|_____________|1| *Name: | base_domain |Enter value for "Name" OR [Exit][Previous][Next]> Next<------------------- Fusion Middleware Configuration Wizard ------------------>Select the target domain directory for this domain:---------------------------------------------------"Target Location" = [Enter new value or use default"/app/Oracle/Middleware/user_projects/domains"]5.1.6.配置管理员用户及密码<------------------- Fusion Middleware Configuration Wizard ------------------>Configure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________| 1| *Name: | weblogic |2| *User password: | ************* |3| *Confirm user password: | ************* |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "Name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>5.1.7.配置域模式(选择2生产模式)<------------------- Fusion Middleware Configuration Wizard ------------------>Domain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.->1|Development Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 25.1.8.选择JDK(选择JRockitJDK)<------------------- Fusion Middleware Configuration Wizard ------------------>Java SDK Selection:-------------------->1|JRockit SDK 1.6.0_45 @ /app/jrockit-jdk2|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> Next5.1.9.配置管理服务器<------------------- Fusion Middleware Configuration Wizard ------------------>Select Optional Configuration:------------------------------1|Administration Server [x]2|Managed Servers, Clusters and Machines [ ]3|RDBMS Security Store [ ]Enter index number to select OR [Exit][Previous][Next]> Next<------------------- Fusion Middleware Configuration Wizard ------------------>Configure the Administration Server:------------------------------------Each WebLogic Server domain must have one Administration Server. The Administration Server 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 |Use above value or select another 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]> 2<------------------- Fusion Middleware Configuration Wizard ------------------>Configure the Administration Server:------------------------------------Each WebLogic Server domain must have one Administration Server. The Administration Server 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 |Enter option number to select OR [Exit][Previous][Next]> 2Enter value for "Listen address" OR [Exit][Previous][Next]> 10.140.30.51<------------------- Fusion Middleware Configuration Wizard ------------------>Configure the Administration Server:------------------------------------Each WebLogic Server domain must have one Administration Server. TheAdministration Server is used to perform administrative tasks.| Name | Value |_|__________________|______________|1| *Name: | AdminServer |2| *Listen address: | 10.140.30.51 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>5.1.10.创建域--注:创建域等待时间可能会比较久,请耐心等待<------------------- Fusion Middleware Configuration Wizard ------------------>Creating Domain...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]**** Domain Created Successfully! ****[weblogic@po9kcfap901 bin]$5.1.11.查看域创建日志,检查域是否创建成功[weblogic@po9kcfap901 logs]$ tail -f -n 100 wlsconfig_20170326124746.log2017-03-26 12:47:47,583 WARN [Main Thread]com.oracle.cie.wizard.WizardController - Unable to instantiate GUI, defaulting to console mode.2017-03-26 12:50:34,507 INFO [WizardController] ponentsXMLConverter - /app/Oracle/Middleware/wlserver_10.3/common/lib/components.xml does not contain component elements and will be skipped2017-03-26 12:50:34,507 INFO [WizardController] com.oracle.cie.wizard.domain.console.tasks.MultipleTemplateSelectionConsoleTask - Selected required template: Basic WebLogic Server Domain:10.3.6.0 [/app/Oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar] 2017-03-26 12:51:32,483 INFO [WizardController] com.oracle.cie.domain.WLSTemplateBuilder - No config-groups.xml found in template 2017-03-26 12:51:32,484 INFO [WizardController] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template 2017-03-26 12:51:32,820 INFO [WizardController] com.oracle.cie.domain.AbstractTemplate - Adding top-level component reference: WebLogic Server version 10.3.6.02017-03-26 12:51:32,823 INFO [WizardController] com.oracle.cie.domain.AbstractTemplate - Setting symbol for component WebLogic Server version 10.3.6.0 to WebLogic_Server_10.3.6.0_wlserver_10.3_ORACLE_HOME 2017-03-26 13:44:10,571 INFO [WizardController] com.oracle.cie.domain.DomainChecker - ListenPort internal Validation result= [null] 2017-03-26 13:44:10,583 INFO [WizardController] com.oracle.cie.domain.DomainChecker - ListenPort external Validation result= [null] 2017-03-26 13:55:15,687 INFO [Thread-1] com.oracle.cie.domain.DomainRegistryWrapper - need to initialize domainRegistrydocument object2017-03-26 13:55:15,696 INFO [Thread-1] com.oracle.cie.domain.DomainGenerator - Domain Generation Successful!5.1.12.启动域,验证管理服务器是否配置成功--注:根据提示,输入域控制台管理用户名及密码[weblogic@po9kcfap901bin]$ /app/Oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh ..JAVA Memory arguments: -Xms512m -Xmx512m.WLS Start Mode=Production.CLASSPATH=/app/Oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_cl asspath/weblogic_patch.jar:/app/jrockit-jdk/lib/tools.jar:/app/Oracle/Middleware/wlserver _10.3/server/lib/weblogic_sp.jar:/app/Oracle/Middleware/wlserver_10.3/server/lib/weblog ic.jar:/app/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/app/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/app/Oracle/Middleware/m odules/org.apache.ant_1.7.1/lib/ant-all.jar:/app/Oracle/Middleware/modules/net.sf.antcon trib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/app/Oracle/Middleware/wlserver_10.3/common/der by/lib/derbyclient.jar:/app/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar .PATH=/app/Oracle/Middleware/wlserver_10.3/server/bin:/app/Oracle/Middleware/m odules/org.apache.ant_1.7.1/bin:/app/jrockit-jdk/jre/bin:/app/jrockit-jdk/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/weblogic/bin.**************************************************** To start WebLogic Server, use a username and ** password assigned to an admin-level user. For ** server administration, use the WebLogic Server ** console at http://hostname:port/console *……<Mar 26, 2017 2:01:21 PM CST><Notice><Server><BEA-002613><Channel "Default" is now listening on 10.140.30.51:7001 for protocols iiop, t3, ldap, snmp, http.><Mar 26, 2017 2:01:21 PM CST><Notice><WebLogicServer><BEA-000329><Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Production Mode><Mar 26, 2017 2:01:21 PM CST><Notice><WebLogicServer><BEA-000365><Server state changed to RUNNING><Mar 26, 2017 2:01:21 PM CST><Notice><WebLogicServer><BEA-000360><Server started in RUNNING mode>5.1.13.IE登录域控制台http://10.140.30.51:7001/console/login/LoginForm.jsp5.2.环境参数配置5.2.1.Java.security安全策略文件配置--修改java.security文件,用于解决Weblogic启动慢或者控制台访问慢的问题--将securerandom.source=file:/dev/urandom调整为securerandom.source=file:/dev/./urandom[weblogic@po9kcfap901base_domain]$ vi /app/jrockit-jdk/jre/lib/security/java.security## This is the "master security properties file".## In this file, various security properties are set for use by# On Windows systems, the URLs file:/dev/random and file:/dev/urandom# enables use of the Microsoft CryptoAPI seed functionality.#securerandom.source=file:/dev/./urandom5.2.2.域内存参数配置--注:修改-Xms、-Xmx、--XX:PermSize、--XX:MaxPermSize这4个参数[weblogic@po9kcfap901base_domain]$ vi /app/Oracle/Middleware/user_projects/domains/base_domain/bin/setDomainEnv.sh--修改JVM内存参数if [ "${JAVA_VENDOR}" = "Sun" ] ; thenWLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"exportWLS_MEM_ARGS_64BITWLS_MEM_ARGS_32BIT="-Xms256m -Xmx512m"exportWLS_MEM_ARGS_32BITelseWLS_MEM_ARGS_64BIT="-Xms2048m -Xmx3072m"exportWLS_MEM_ARGS_64BITWLS_MEM_ARGS_32BIT="-Xms512m -Xmx512m"exportWLS_MEM_ARGS_32BITfiMEM_PERM_SIZE_64BIT="-XX:PermSize=512m"exportMEM_PERM_SIZE_64BITMEM_PERM_SIZE_32BIT="-XX:PermSize=128m"exportMEM_PERM_SIZE_32BITif [ "${JAVA_USE_64BIT}" = "true" ] ; thenMEM_PERM_SIZE="${MEM_PERM_SIZE_64BIT}"exportMEM_PERM_SIZEelseMEM_PERM_SIZE="${MEM_PERM_SIZE_32BIT}"exportMEM_PERM_SIZEfiMEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=1024m"exportMEM_MAX_PERM_SIZE_64BITMEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=128m"exportMEM_MAX_PERM_SIZE_32BIT5.2.3.域JAVA_OPTIONS参数配置--注:需要在JAVA_OPTIONS中增加.preferIPv4Stack=true参数,否则在启动被管理服务器时,会出现“<BEA-000110><Multicast socket receive error”错误提示if [ "${debugFlag}" = "true" ] ; thenJAVA_DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=${DEBUG_PORT},server=y,suspend=npiler=NONE"exportJAVA_DEBUGJAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -ea -da:com.bea...-da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole....preferIPv4Stack=true"exportJAVA_OPTIONSelseJAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -da .preferIPv4Stack=true"exportJAVA_OPTIONS5.3.管理服务器(AdminServer)配置--以后台模式启动服务,并将控制台输出日志重定向到指定文件[weblogic@po9kcfap901base_domain]$ vi /app/Oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh #!/bin/sh# WARNING: This file is created by the Configuration Wizard.# Any changes to this script may be lost when adding extensions to this configuration.DOMAIN_HOME="/app/Oracle/Middleware/user_projects/domains/base_domain"nohup ${DOMAIN_HOME}/bin/startWebLogic.sh>${DOMAIN_HOME}/AdminServer.out $* &5.3.1.密钥文件配置--在管理服务器下新增安全认证目录及密钥文件[weblogic@po9kcfap901 ~]$ mkdir -p /app/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/securi ty[weblogic@po9kcfap901 ~]$ vi /app/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/securi ty/boot.propertiesusername=weblogicpassword=*****5.3.2.启动脚本配置--以后台模式启动服务,并将控制台输出日志重定向到指定文件[weblogic@po9kcfap901 server]$ vi /app/Oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh #!/bin/sh。