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