您好,登錄后才能下訂單哦!
靜默安裝,意思就是不需要vnc之類(lèi)去連接圖像界面,按照以下步驟是可以順利完成 準(zhǔn)備jdk環(huán)境 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 操作的時(shí)候有一點(diǎn)要特別注意,就是切換weblogic的時(shí)候,正確的做法是su - weblogic,而不是su weblogic useradd weblogic echo "xx" | passwd --stdin weblogic 1.創(chuàng)建 oraInst.loc 文件 inventory_loc=/opt/weblogic/oraInventory1 inst_group=weblogic 2.創(chuàng)建 wls.rsp響應(yīng)文件 inventory_loc=/opt/weblogic/oraInventory1 inst_group=weblogic [root@ct1 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.開(kāi)始安裝 java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /opt/src/wls.rsp -invPtrLoc /opt/src/oraInst.loc 出現(xiàn)從20%到100%代表順利完成 如果有錯(cuò)誤,請(qǐng)到/opt/weblogic/Oracle/Middleware/logs查看log 成功后執(zhí)行 /opt/weblogic/Oracle/Middleware/wlserver/server/bin/setWLSEnv.sh 可以把輸出的classpath直接加到/etc/profile 5.內(nèi)存優(yōu)化,否則創(chuàng)建域的時(shí)候很慢 ./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.創(chuàng)建域 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; 就是以上,有幾個(gè)地方說(shuō)明以下 create Machine "shaiksameer.com" as Machinename; 這名字自己取 create Server "ms1" as MS1; 有這個(gè)好像啟動(dòng)會(huì)報(bào)說(shuō)這個(gè)server找不到,先這樣 7.開(kāi)始吧 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 執(zhí)行會(huì)比較慢 建議 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就行,然后訪(fǎng)問(wèn)http://ip:8001/console 密碼在create_domain.rsp 10.這個(gè)是安裝的過(guò)程,weblogic還有更多的東西
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。