1、创建用户
1 [root@localhost ~]# useradd weblogic 2 [root@localhost ~]# passwd weblogic
2、安装JDK
上传jdk至/usr/local/src目录下
1 [root@localhost src]# tar -zxvf jdk-8u91-linux-x64.tar.gz 2 [root@localhost src]# cp -r jdk1.8.0_91/ /usr/local/jdk 3 4 # 设置环境变量 5 [root@localhost src]# vim /etc/profile 6 # 添加以下内容 7 export JAVA_HOME=/usr/local/jdk 8 export JRE_HOME=/usr/local/jdk/jre 9 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib 10 export PATH=$PATH:$JAVA_HOME/bin 11 [root@localhost src]# source /etc/profile 12 13 # 验证jdk 14 [root@localhost src]# java -version 15 [root@localhost src]# javac -version 16 [root@localhost src]# javac
3、安装weblogic
切换用户,以weblogic用户安装
1 [root@localhost local]# su - weblogic 2 Last login: Fri Aug 24 13:10:10 CST 2018 on pts/2 3 [weblogic@localhost ~]$ java -jar wls1036_generic.jar 4 Unable to instantiate GUI, defaulting to console mode. 5 Extracting 0%..........................................................................100% 6 7 8 9 10 11 <-------------------- Oracle Installer - WebLogic 10.3.6.0 ---------------- 12 13 Welcome: 14 -------- 15 16 This installer will guide you through the installation of WebLogic 10.3.6.0 17 Type "Next" or enter to proceed to the next prompt. If you want to change ype "Previous". You may quit the installer at any time by typing "Exit". 18 19 20 21 22 Enter [Exit][Next]> 23 24 25 26 27 28 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 29 30 Choose Middleware Home Directory: # 选择安装位置 31 --------------------------------- 32 33 "Middleware Home" = [Enter new value or use default 34 "/home/weblogic/Oracle/Middleware"] 35 36 37 38 39 Enter new Middleware Home OR [Exit][Previous][Next]> 40 41 42 43 44 45 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 46 47 Register for Security Updates: 48 ------------------------------ 49 50 Provide your email address for security updates and to initiate configuration manager. 51 52 1|Email:[] 53 2|Support Password:[] 54 3|Receive Security Update:[Yes] # 设置为No 55 56 57 58 Enter index number to select OR [Exit][Previous][Next]> 3 59 60 61 62 63 64 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 65 66 Register for Security Updates: 67 ------------------------------ 68 69 Provide your email address for security updates and to initiate configuration manager. 70 71 "Receive Security Update:" = [Enter new value or use default "Yes"] 72 73 74 75 Enter [Yes][No]? No 76 77 78 79 80 81 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 82 83 Register for Security Updates: 84 ------------------------------ 85 86 Provide your email address for security updates and to initiate configuration manager. 87 88 "Receive Security Update:" = [Enter new value or use default "Yes"] 89 90 91 ** Do you wish to bypass initiation of the configuration manager and 92 ** remain uninformed of critical security issues in your configuration? 93 94 95 Enter [Yes][No]? Yes 96 97 98 99 100 101 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 102 103 Register for Security Updates: 104 ------------------------------ 105 106 Provide your email address for security updates and to initiate configuration manager. 107 108 1|Email:[] 109 2|Support Password:[] 110 3|Receive Security Update:[No] 111 112 113 114 Enter index number to select OR [Exit][Previous][Next]> 115 116 117 118 119 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 120 121 Register for Security Updates: 122 ------------------------------ 123 124 Provide your email address for security updates and to initiate configuration manager. 125 126 1|Email:[] 127 2|Support Password:[] 128 3|Receive Security Update:[No] 129 130 131 132 Enter index number to select OR [Exit][Previous][Next]> 133 134 135 136 137 138 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 139 140 Choose Install Type: 141 -------------------- 142 143 Select the type of installation you wish to perform. 144 145 ->1|Typical # 选择典型安装 146 | Install the following product(s) and component(s): 147 | - WebLogic Server 148 | - Oracle Coherence 149 150 2|Custom 151 | Choose software products and components to install and perform optional 152 |configuration. 153 154 155 156 157 158 Enter index number to select OR [Exit][Previous][Next]> 159 160 161 162 163 164 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 165 # jdk位置 166 JDK Selection (Any * indicates Oracle Supplied VM): 167 --------------------------------------------------- 168 169 JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed. 170 171 1|Add Local Jdk 172 2|/usr/local/jdk[x] 173 174 175 176 *Estimated size of installation: 690.2 MB 177 178 179 Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> 180 181 182 183 184 185 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 186 187 Choose Product Installation Directories: 188 ---------------------------------------- 189 190 Middleware Home Directory: [/home/weblogic/Oracle/Middleware] 191 192 Product Installation Directories: 193 194 # 产品的安装目录 195 1|WebLogic Server: [/home/weblogic/Oracle/Middleware/wlserver_10.3] 196 2|Oracle Coherence: [/home/weblogic/Oracle/Middleware/coherence_3.7] 197 198 199 200 201 Enter index number to select OR [Exit][Previous][Next]> 202 203 204 205 206 207 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 208 209 The following Products and JDKs will be installed: 210 -------------------------------------------------- 211 212 WebLogic Platform 10.3.6.0 213 |_____WebLogic Server 214 | |_____Core Application Server 215 | |_____Administration Console 216 | |_____Configuration Wizard and Upgrade Framework 217 | |_____Web 2.0 HTTP Pub-Sub Server 218 | |_____WebLogic SCA 219 | |_____WebLogic JDBC Drivers 220 | |_____Third Party JDBC Drivers 221 | |_____WebLogic Server Clients 222 | |_____WebLogic Web Server Plugins 223 | |_____UDDI and Xquery Support 224 | |_____Evaluation Database 225 |_____Oracle Coherence 226 |_____Coherence Product Files 227 228 *Estimated size of installation: 690.3 MB 229 230 231 232 233 Enter [Exit][Previous][Next]> 234 Aug 24, 2018 2:03:54 PM java.util.prefs.FileSystemPreferences$1 run 235 INFO: Created user preferences directory. 236 237 238 239 240 241 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 242 243 Installing files.. 244 245 0% 25% 50% 75% 100% 246 [------------|------------|------------|------------] 247 [***************************************************] 248 249 250 Performing String Substitutions... 251 252 253 254 255 256 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 257 258 Configuring OCM... 259 260 0% 25% 50% 75% 100% 261 [------------|------------|------------|------------] 262 [***************************************************] 263 264 265 Creating Domains... 266 267 268 269 270 271 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 272 273 Installation Complete 274 275 276 Congratulations! Installation is complete. 277 278 279 Press [Enter] to continue or type [Exit]> 280 281 282 283 284 285 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> 286 287 Clean up process in progress ...
至此,weblogic安装成功