標籤:load xquery apr mapper fstab ash blank party arch
1.下載jdk和weblogic安裝介質
一般的搭配是jdk1.5+weblogic92、jdk1.6+weblogic11g(weblogic10.3.6)
jdk曆史版本下載連結:http://www.oracle.com/technetwork/java/javase/archive-139210.html
jdk安裝詳見http://www.cnblogs.com/lsdb/p/6511907.html
weblogic下載連結:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
2.建立檔案系統和使用者
對於正式的安裝一般需要建立專門的使用者和檔案系統來安裝weblogic
mkdir /weblogic #建立檔案系統的掛載目錄lsblk #查看存在的磁碟fdisk /dev/sdb #假設未用磁碟是sdb,具體視lsblk結果而定,在其中建立物理卷sdb1pvcreate /dev/sdb1 #對物理卷sdb1進行初始化,為建立卷組做準備vgcreate appvg /dev/sdb1 #appvg是要建立的vg名,如果要sbd1外還要加入其他物理卷則在sdb1後空格再接著寫即可lvcreate -L 50G -n weblogic appvg #50G為要建的邏輯卷大小,weblogic為要建的邏輯卷卷名,appvg為剛建的卷組名mkfs.ext4 /dev/mapper/appvg-weblogic #對建立的邏輯卷進行格式化mount /dev/mapper/appvg-weblogic /weblogic #將邏輯卷掛載echo "/dev/mapper/appvg-weblogic/weblogicext4defaults0 0" >> /etc/fstab
#將掛載資訊寫入掛載檔案避免每次系統重啟都得手動掛載useradd -U -d /weblogic weblogic #建立weblogic系統使用者echo "weblogic" | passwd --stdin weblogic #修改weblogic使用者密碼cp /etc/skel/.bash* /weblogic #將基本的.bash複製到家目錄
chown -R weblogic:weblogic /weblogic #將家目錄下檔案全賦給weblogic
3.安裝weblogic
/opt/java6_64/bin/java -jar wls1036_generic.jar #執行安裝命令Unable to instantiate GUI, defaulting to console mode.Extracting 0%....................................................................................................100%<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Welcome:--------This installer will guide you through the installation of WebLogic 10.3.6.0. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".Enter [Exit][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Middleware Home Directory:--------------------------------- "Middleware Home" = [Enter new value or use default "/home/ls/Oracle/Middleware"]Enter new Middleware Home OR [Exit][Previous][Next]> /weblogic #輸入設定的weblogic安裝目錄<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Middleware Home Directory:--------------------------------- "Middleware Home" = [/weblogic]Use above value or select another option: 1 - Enter new Middleware Home 2 - Change to default [/home/ls/Oracle/Middleware]Enter option number to select OR [Exit][Previous][Next]> #斷行符號確認更改<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support Password:[] 3|Receive Security Update:[Yes]Enter index number to select OR [Exit][Previous][Next]> 3 #輸入3設定更新<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"]Enter [Yes][No]? No #輸入No取消更新<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] ** Do you wish to bypass initiation of the configuration manager and ** remain uninformed of critical security issues in your configuration?Enter [Yes][No]? Yes #輸入Yes確定取消更新<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support Password:[] 3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]> #斷行符號進入下一步<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:------------------------------Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support Password:[] 3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]> #斷行符號進入下一步<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Install Type:--------------------Select the type of installation you wish to perform. ->1|Typical | Install the following product(s) and component(s): | - WebLogic Server | - Oracle Coherence 2|Custom | Choose software products and components to install and perform optional |configuration.Enter index number to select OR [Exit][Previous][Next]> 2 #輸入2選擇自訂安裝<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Products and Components:------------------------------- Release 10.3.6.0 |_____WebLogic Server [1] x | |_____Core Application Server [1.1] x | |_____Administration Console [1.2] x | |_____Configuration Wizard and Upgrade Framework [1.3] x | |_____Web 2.0 HTTP Pub-Sub Server [1.4] x | |_____WebLogic SCA [1.5] x | |_____WebLogic JDBC Drivers [1.6] x | |_____Third Party JDBC Drivers [1.7] x | |_____WebLogic Server Clients [1.8] x | |_____WebLogic Web Server Plugins [1.9] x | |_____UDDI and Xquery Support [1.10] x | |_____Server Examples [1.11] | |_____Evaluation Database [1.12] x |_____Oracle Coherence [2] x |_____Coherence Product Files [2.1] x |_____Coherence Examples [2.2] *Estimated size of installation: 690.2 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.10 #輸入1.10取消UDDI的安裝,該組件存在服務端跨站請求漏洞<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Products and Components:------------------------------- Release 10.3.6.0 |_____WebLogic Server [1] x | |_____Core Application Server [1.1] x | |_____Administration Console [1.2] x | |_____Configuration Wizard and Upgrade Framework [1.3] x | |_____Web 2.0 HTTP Pub-Sub Server [1.4] x | |_____WebLogic SCA [1.5] x | |_____WebLogic JDBC Drivers [1.6] x | |_____Third Party JDBC Drivers [1.7] x | |_____WebLogic Server Clients [1.8] x | |_____WebLogic Web Server Plugins [1.9] x | |_____UDDI and Xquery Support [1.10] | |_____Server Examples [1.11] | |_____Evaluation Database [1.12] x |_____Oracle Coherence [2] x |_____Coherence Product Files [2.1] x |_____Coherence Examples [2.2] *Estimated size of installation: 682.0 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> #斷行符號確認<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK Selection (Any * indicates Oracle Supplied VM):---------------------------------------------------JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed. 1|Add Local Jdk 2|/opt/jdk1.6.0_105[x] *Estimated size of installation: 682.0 MBEnter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> #斷行符號確認jdk<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Product Installation Directories:----------------------------------------Middleware Home Directory: [/weblogic]Product Installation Directories: 1|WebLogic Server: [/weblogic/wlserver_10.3] 2|Oracle Coherence: [/weblogic/coherence_3.7]Enter index number to select OR [Exit][Previous][Next]> #斷行符號<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->The following Products and JDKs will be installed:-------------------------------------------------- WebLogic Platform 10.3.6.0 |_____WebLogic Server | |_____Core Application Server | |_____Administration Console | |_____Configuration Wizard and Upgrade Framework | |_____Web 2.0 HTTP Pub-Sub Server | |_____WebLogic SCA | |_____WebLogic JDBC Drivers | |_____Third Party JDBC Drivers | |_____WebLogic Server Clients | |_____WebLogic Web Server Plugins | |_____Evaluation Database |_____Oracle Coherence |_____Coherence Product Files *Estimated size of installation: 682.2 MBEnter [Exit][Previous][Next]> #斷行符號確認安裝Apr 11, 2017 10:17:43 AM java.util.prefs.FileSystemPreferences$2 runINFO: Created user preferences directory.<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installing files..0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Performing String Substitutions... <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Configuring OCM...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Creating Domains...<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installation CompleteCongratulations! Installation is complete.Press [Enter] to continue or type [Exit]> #斷行符號完成<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Clean up process in progress ...[[email protected] ~]$
至此weblogic安裝已算完成,創域參見“weblogic建立domain教程”。
weblogic安裝教程