静默安装,意思就是不需要vnc之类去连接图像界面,按照以下步骤是可以顺利完成 准备jdk环境 vim /etc/profile 添加 export JAVA_HOME=/usr/java/jdk export JRE_HOME=/usr/java/jdk/jre exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib export PATH=$JAVA_HOME/bin:$PATH fmw_12.1.3.0.0_wls.jar oraInst.loc wls.rsp useradd weblogic 操作的时候有一点要特别注意,就是切换weblogic的时候,正确的做法是su - weblogic,而不是su weblogic useradd weblogic echo "xx" | passwd --stdin weblogic 1.创建 oraInst.loc 文件 inventory_loc=/opt/weblogic/oraInventory1 inst_group=weblogic 2.创建 wls.rsp响应文件 inventory_loc=/opt/weblogic/oraInventory1 inst_group=weblogic [[email protected] src]# cat *.rsp [ENGINE] Response File Version=1.0.0.0.0 [GENERIC] ORACLE_HOME=/opt/weblogic/Oracle/Middleware #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples. INSTALL_TYPE=WebLogic Server DECLINE_SECURITY_UPDATES=true SECURITY_UPDATES_VIA_MYORACLESUPPORT=false 3.su - webLogic mkdir -p /opt/weblogic/Oracle/Middleware export DISPLAY=:0.0 这不很重要 4.开始安装 java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /opt/src/wls.rsp -invPtrLoc /opt/src/oraInst.loc 出现从20%到100%代表顺利完成 如果有错误,请到/opt/weblogic/Oracle/Middleware/logs查看log 成功后执行 /opt/weblogic/Oracle/Middleware/wlserver/server/bin/setWLSEnv.sh 可以把输出的classpath直接加到/etc/profile 5.内存优化,否则创建域的时候很慢 ./Oracle/Middleware/oracle_common/rda/da/da.sh ./Oracle/Middleware/oracle_common/common/bin/commEnv.sh MEM_ARGS="-Xms2048m -Xmx4096m -XX:MaxPermSize=1024m" UTILS_MEM_ARGS="-Xms32m -Xmx1024m" 6.创建域 su - weblogic mkdir -p /opt/weblogic/Oracle/Middleware/user_projects/domains/hnDomain cd /opt/webLogic vim create_domain.rsp read template from "/opt/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"; set JavaHome "/usr/java/jdk"; set ServerStartMode "dev"; find Server "AdminServer" as AdminServer; set AdminServer.ListenAddress ""; set AdminServer.ListenPort "8001"; set AdminServer.SSL.Enabled "true"; set AdminServer.SSL.ListenPort "8002"; //We can directly create a new managed server. create Server "ms1" as MS1; set MS1.ListenAddress ""; set MS1.ListenPort "8003"; //set MS1.SSL.Enabled "true"; //set MS1.SSL.ListenPort "7004″; //Create Machine create Machine "shaiksameer.com" as Machinename; //use templates default weblogic user find User "weblogic" as u1; set u1.password "weblogic123"; //create a new user create User "weblogic2" as u2; set u2.password "weblogic123"; write domain to "/opt/weblogic/Oracle/Middleware/user_projects/domains/hnDomain"; // The domain name will be "demo-domain" close template; 就是以上,有几个地方说明以下 create Machine "shaiksameer.com" as Machinename; 这名字自己取 create Server "ms1" as MS1; 有这个好像启动会报说这个server找不到,先这样 7.开始吧 su - weblogic touch /opt/weblogic/create_domain.log cd /opt/weblogic/Oracle/Middleware/wlserver/common/bin ./config.sh -mode=silent -silent_script=/opt/weblogic/create_domain.rsp -logfile=/opt/weblogic/create_domain.log -Djava.security.egd=file:/dev/urandom 执行会比较慢 建议 nohup ./config.sh -mode=silent -silent_script=/opt/weblogic/create_domain.rsp -logfile=/opt/weblogic/create_domain.log -Djava.security.egd=file:/dev/urandom & 8.完成后 cd /opt/weblogic/Oracle/Middleware/user_projects/domains/hnDomain 修改./bin/setDomainEnv.sh: WLS_MEM_ARGS_64BIT="-Xms2048m -Xmx4096m" ./startWebLogic.sh & 9.ss -an 有8001,8002就行,然后访问http://ip:8001/console 密码在create_domain.rsp 10.这个是安装的过程,weblogic还有更多的东西
时间: 2024-10-10 01:33:14