
(如果是非集群环境,可以直接把应用部署到这里,集群环境,adminserver仅作为管理其它server的服务器使用)。接下来我们进入zookeeper的安装环节,zookeeper的安装总的来说比较简单,这里我准备了3台linux虚拟机,模拟集群环境,有条件的同学可以自己装3台(最少),其实集群和单机的区别不是太大,但是集群时节点数量一定是奇数(2n+。zookeeper,推荐集群中部署奇数个节点,由于zookeeper挂掉一半的机器集群就不可用,所以部署4台和3台的集群都是在挂掉2台后集群不可用。
修改hbase下的配置文件,首先修改hbase-env.sh,主要修改java_home以及相关参数,这里要说明一下hbase_manages_zk这个参数,因为采用了自己的zookeeper,所以这里设置为false,否则hbase会自己启动一个zookeeper。特别需要注意的是 keepalived.sh 脚本在运行期是需要读取配置文件 keepalived.conf 文件里的参数的,特别是上述这四个参数,那么由于 keepalived.conf 文件必须在 images 生成之前在 dockerfile 里写好,因此在 dockerfile 里,它们一定是变量,而在容器运行起来之后,keepalive.sh 运行之前需要把变量赋值,这些值正是用户填写的。另外createprocessw有一个奇怪的行为,它会修改参数lpcommandline(似乎只在lpapplicationname为空的时候会修改),所以使用unicode版本的时候传入的该参数不能是常字符串(如l”nodepad 1.txt”),而应该另外准备缓冲传给该api供其修改,因为ansi版本是调用unicode版本的且在编码转换的时候内置了缓冲,所以createprocessa的lpcommandline参数可以是常串(最终api会修改转换编码的临时缓冲)。
于是写脚本单独启动server1,
[root@weblogic02 bin]# pwd
/weblogic/domains/base_domain/bin

[root@weblogic02 bin]# java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr16fp2-20141026_01(SR16 FP2))
p=blog&i=ntuwma, would be to copy a config.h header file to your /lib/modules/kernel-version/build/include/linux directory. if you have a previous kernel build on your computer you can copy the file from your /lib/modules/old-kernel-version/build/include/linux directory. alternatively you can just copy the code below into a self madeconfig.hfile。our version of mii is 12.2.4 build(92) and it is running on a linux server.。enable bsd bug-to-bug compatibility. this is used only by the udp protocol module and scheduled to be removed in future. if enabled icmp errors received for a udp socket will not be passed to the user program. linux 2.0 also enabled bsd bug-to-bug compatibility options (random header changing, skipping of the broadcast flag) for raw sockets with this option, but that has been removed in linux 2.2. it is better to fix the user programs than to enable this flag.。
J9VM - 20141010_216764

JIT - r9_20140523_64469ifx2
GC - GA24_Java6_SR16_20141010_1202_B216764)
JCL - 20141005_01
由于使用了IBM JDK,使用了gencon的方式。weblogic 集群
[root@weblogic02 bin]# cat startServer1.sh

#!/bin/sh
export USER_MEM_ARGS="-Xms512m -Xmx768m -Xmn128m"
| create a basic weblogic workshop domain, without installing sample applications. domains created from this template will support the |weblogic server and weblogic workshop runtime functionality, including support for j2ee applications, web applications, web services and |custom controls. use domains created from this template for development of weblogic workshop applications.。|web services, custom controls and portals. use domains created from this template for development of weblogic portal applications.。/opt/spytest/pvt/java/container/weblogic12/user_projects/domains/base_domain/servers/adminserver。
pthread_create(&tid,null,thread_rounter
cat nohup.out > fasp$date.out。cp /home/primeton/di/nohup.out /home/primeton/di/nohup_$date.out。most of all web, proxy, wap, streaming servers (and ftp servers or mail logs)。

这样AdminServer和server1的参数就区别开了。
[root@weblogic02 bin]# ps -ef | grep java
|weblogic server, weblogic workshop and weblogic portal runtime functionality, including support for j2ee applications, web applications,。|weblogic server, weblogic workshop, weblogic integration and weblogic portal runtime functionality, including support for j2ee。[weblogic@localhost liaowh]$ java -jar wls_121200.jar -silent -response /home/weblogic/liaowh/wls12.rsp -invptrloc /home/weblogic/liaowh/orainst.loc。
weblogic 26758 26709 2 11:50 pts/7 00:00:26 /opt/ibm/java-x86_64-60/bin/java -Xms512m -Xmx768m -Xmn128m -Dweblogic。Name=server1 -Djava。security。policy=/weblogic/bea/wlserver_10。3/server/lib/weblogic。policy -Dweblogic。ProductionModeEnabled=true -Dweblogic。weblogic 集群security。SSL。trustedCAKeyStore=/weblogic/bea/wlserver_10。3/server/lib/cacerts -da -Djava。net。preferIPv4Stack=true -Xgcpolicy:gencon -Xdisableexplicitgc -Xverbosegclog:/weblogic/domains/base_domain/servers/server1/logs/server1gc。26707。log -Dweblogic。
threadpool。MinPoolSize=100 -Dweblogic。threadpool。MaxPoolSize=1000 -Xconcurrentslack500M -da -Djava。net。preferIPv4Stack=true -Dplatform。home=/weblogic/bea/wlserver_10。3 -Dwls。home=/weblogic/bea/wlserver_10。3/server -Dweblogic。home=/weblogic/bea/wlserver_10。3/server -Dweblogic。management。discover=false -Dweblogic。management。server=http://192。168。43。183:7001 -Dwlw。iterativeDev=false -Dwlw。testConsole=false -Dwlw。logErrorsToConsole=false -Dweblogic。ext。dirs=/weblogic/bea/patch_wls1035/profiles/default/sysext_manifest_classpath:/weblogic/bea/patch_ocp360/profiles/default/sysext_manifest_classpath weblogic。Server
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-98112-1.html
加油