實戰部署weblogic集羣及發佈應用(3)java
-----構建weblogic高可用系列(共7篇)linux
服務器規劃web
本次搭建使用的虛擬機,因爲內存有限,我搭建的是第一種規劃方案同一臺服務器,以下:安全
(1)主機信息bash
(2)集羣信息服務器
軟件版本:oracle
redhat6.4(64位)app
jdk1.7.0_45.taride
wls1033_generic.jar測試
1、關閉selinux和防火牆
a. service iptables stop #關閉防火牆 b. setenforce 0 #臨時關閉selinux c. vi /etc/selinux/config #修改以下,永久關閉selinux,要重啓 SELINUX=disabled
2、建立普通用戶管理weblogic
groupadd app mkdir /app useradd -d /app/sinova -g app sinova echo "sinova" | passwd --stdin sinova
3、安裝JDK
a.解壓、移動到/app/sinova/ tar fxjdk1.7.0_45.tar mv jdk1.7.0_45 /app/sinova/ b.配置JDK、聲明環境變量 vi .bash_profile //追加以下內容 JAVA_HOME=/app/sinova/jdk1.7.0_45 PATH=${JAVA_HOME}/bin:$PATH:$HOME/bin export PATHJAVA_HOME c.測試效果 執行:java-version 顯示: java version"1.7.0_45" Java(TM) SERuntime Environment (build 1.7.0_45-b18) JavaHotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
4、修改打開文件最大個數、最大進程數【root用戶操做】
a.編輯 vi /etc/security/limits.conf //追加以下內容 * soft nofile 65535 * hard nofile 65535 sinova soft nproc 65535 sinova hard nproc 65535 b.校驗 ulimit -a
5、修改 /etc/hosts 【追加上本機具體IP和127.0.0.1 對應本機主機名】
127.0.0.1 weblogic 192.168.101.166 weblogic
6、安裝weblogic軟件【安裝目錄 /app/sinova/oracle】
java -jar wls1033_generic.jar Extracting 0%............................100% #解壓縮、提取文件 Enter [Exit][Next]> 回車 #默認就是Next Enter new Middleware Home OR [Exit][Previous][Next]>/app/sinova/oracle #從新定義安裝目錄 "MiddlewareHome" = [/u02/weblogic] Use above value or select another option: 1 - Enter newMiddleware Home 2 - Change todefault [/u02/weblogic/Oracle/Middleware] Enter option number to select OR [Exit][Previous][Next]> 回車 #從新定義安裝目錄完畢,直接回車 Warning /u02/weblogic directory is not empty. Proceed withinstallation? Enter [Exit][Previous][Next]> 回車 #警告忽略 Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|SupportPassword:[] 3|Receive SecurityUpdate:[Yes] Enter index number to select OR [Exit][Previous][Next]> 3 #修改第3項,安全更新 Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enternew value or use default "Yes"] Enter [Yes][No]? No #不接受,安全更新 ** Do you wish tobypass initiation of the configuration manager and ** remain uninformed of critical security issuesin your configuration? Enter [Yes][No]? Yes #確認上面的操做 1|Email:[] 2|SupportPassword:[] 3|Receive SecurityUpdate:[No] Enter index number to select OR [Exit][Previous][Next]> 回車 #上面操做的回顯,直接回車 Select the type of installation you wish to perform. ->1|Typical |Install the following product(s) andcomponent(s): | - WebLogic Server | - OracleCoherence | - OracleEnterprise Pack for Eclipse 2|Custom |Choose software products and components toinstall and perform optional |configuration. Enter index number to select OR [Exit][Previous][Next]> 直接回車 #第1個典型安裝 <------ Oracle Installer - WebLogic 10.3.3.0------> JDK Selection (Any * indicates Oracle Supplied VM): ------------------------------------------------- JDK(s) chosen for use with this product installation will beinstalled. Supported defaults if not deselected will be used in scriptstring-substitution. 1|Add Local Jdk 2|/app/sinova/jdk1.7.0_45[x] *Estimated size ofinstallation: 727.6 MB Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]>回車 #weblogic本身會找咱們安裝的jdk <------ Oracle Installer - WebLogic 10.3.3.0------> Choose Product Installation Directories: ----------------------------------------------- Middleware Home Directory: [/app/sinova/Oracle] Product Installation Directories: 1|WebLogic Server:[/app/sinova/Oracle/wlserver_10.3] 2|Oracle Coherence:[/app/sinova/Oracle/coherence_3.5] Enter index number to select OR [Exit][Previous][Next]> 直接回車 #確認路徑 <------ Oracle Installer - WebLogic 10.3.3.0------> The following Products and JDKs will be installed: ------------------------------------------------ WebLogic Platform10.3.3.0 |_____WebLogicServer | |_____Core Application Server | |_____Administration Console | |_____Configuration Wizard and UpgradeFramework | |_____Web 2.0 HTTP Pub-Sub Server | |_____WebLogic SCA | |_____WebLogic JDBC Drivers | |_____Third Party JDBC Drivers | |_____WebLogic Server Clients | |_____WebLogic Web Server Plugins | |_____UDDI and Xquery Support | |_____Evaluation Database |_____OracleCoherence |_____Coherence Product Files *Estimated size ofinstallation: 727.7 MB Enter [Exit][Previous][Next]> 直接回車 #默認 Feb 14, 2015 3:32:30 AMjava.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. <------ Oracle Installer - WebLogic 10.3.3.0------> Installing files.. 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Performing String Substitutions... <------ Oracle Installer - WebLogic 10.3.3.0------> Configuring OCM... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Creating Domains... <------ Oracle Installer - WebLogic 10.3.3.0------> Installation Complete Congratulations! Installation is complete. Press [Enter] to continue or type [Exit]> exit #安裝完畢,退出 <------ Oracle Installer - WebLogic 10.3.3.0------> Clean up process in progress ...
到此爲此,weblogic源碼安裝就結束了!
weblogic安裝有2種方式:
a.圖形方式(圖形界面,很人性化,適合初學的朋友們)
b.字符方式(本文使用此種方式,速度比較快,節省資源,適合有基礎的朋友們)
以上2種安裝方式,請選擇一種適合你的,就行了!