weblogic12c安装-操作命令总结

export JAVA_HOME=/picclife/soft/jdk1.7.0_80
export CLASSPATH=.: J A V A H O M E / j r e / l i b / r t . j a r : JAVA_HOME/jre/lib/rt.jar: JAVAHOME/jre/lib/rt.jar:JAVA_HOME/lib/tools.jar
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVAHOME/bin:PATH

随机数bug
/picclife/soft/jdk1.7.0_80/jre/lib/security下的java.security文件
securerandom.source=file:/dev/./urandom

DISPLAY=192.168.129.1:0.0; export DISPLAY;
xhost + (用来控制X server访问权限的,跟图形界面有关的)

unset DISPLAY

mkdir -p servers/AdminServer/security
建立boot.properties文件,写入一下内容,并保存
username=weblogic
password=newtouch+2018

防火墙中打开8001端口:

vim /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 9001 -j ACCEPT

service iptables restart

------------------------------安装-----------------------------------------------

------初始化文件 oraInst.loc
inventory_loc==/home/weblogic/wlserver1213 产品清单安装目录
inst_group=weblogic 用户组名

------响应文件 ins1213.rsp
Response File Version=1.0.0.0.0

ORACLE_HOME=/picclife/wlserver1213

INSTALL_TYPE=WebLogic Server

MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=

DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=

COLLECTOR_SUPPORTHUB_URL=

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /picclife/soft/ins1213.rsp -invPtrLoc /picclife/soft/oraInst.loc

------------------------------建域-----------------------------------------------

mkdir -p /picclife/wlserver1213/user_projects/domains/domain8001

-----创建建域响应文件 create_domain.rsp
read template from “/picclife/wlserver1213/wlserver/common/templates/wls/wls.jar”;

set JavaHome “/picclife/soft/jdk1.7.0_80”;
set ServerStartMode “prod”;

find Server “AdminServer” as AdminServer;

set AdminServer.ListenAddress “”;
set AdminServer.ListenPort “8001”;

find User “weblogic” as u1;
set u1.password “newtouch+2018”;

write domain to “/picclife/wlserver1213/user_projects/domains/domain8001”;

close template;

sh /picclife/wlserver1213/wlserver/common/bin/config.sh -mode=silent -silent_script=/picclife/soft/create_domain.rsp

ln -s /picclife/wlserver12/wlser12.1.3.0/user_projects domains

nohup ./startWebLogic.sh >domain8001.log 2>&1 &

------------------------------总结-----------------------------------------------
more /etc/sysconfig/network
more /etc/hosts

MEM_ARGS="-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -Dinstance8001"

cd /picclife/soft/jdk1.7.0_80/jre/lib/security
java.policy
permission java.security.AllPermission;

cd /picclife/soft/jdk1.7.0_80/bin
./jstatd -J-Djava.security.policy=all.policy &

JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.port=7090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=192.168.129.132"

MEM_ARGS="-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -Dinstance8001
-XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:ParallelGCThreads=10 -XX:+PrintGCDateStamps
-XX:+PrintGCDetails -verbose:gc -Xloggc:bin/gc_managed_8001.log"

ps -ef | grep java | grep -v grep | grep -i weblogic.server
ps -ef | grep java | grep -v grep | grep -i 5141| awk ‘{print $2}’ | xargs pwdx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值