Weblogic11g 10.3.6安装

Weblogic11g 10.3.6安装

𝓓𝓸𝓷 Lv6
一、Weblogic概述

https://docs.oracle.com/cd/E23943_01/doc.1111/e14142/prepare.htm#WLSIG110

Weblogic是美国BEA公司出口的一个中间件产品,是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应用的JaveEE应用服务器,Weblogic Server拥有处理关键Web应用系统问题所需的性能、安全、可扩展性和高可用性,同时又易于安装、部署和管理。

1.什么是Weblogic系统

Weblogic是目前主流J2EE服务器之一,支持符合J2EE标准的各类应用程序(Application),其主要类型如下:

  • Web模块 HTML网页、Servlet、JSP网页、有关的Java类、标准的J2EE Web配置文件、Weblogic有关的配置文件,如weblogic.xml以及其他文件,如XML文件、图像文件等
  • EJB模块 包含session bean、entity bean、message-driven bean等
  • Connector Modules(连接器模块) 用于和EIS交互的Java类,可能还有Native Modules
  • Enterprise Application(企业应用) 作为一个整体,包含上述一个或者几个模块
2.Weblogic技术架构

Weblogic Platform由下列产品组成:

  • Oracle Weblogic Server Weblogic应用服务器是整个Weblogic产品的核心
  • Oracle Weblogic Workshop Weblogic集成开发环境
  • Oracle Weblogic Portal Weblogic应用门户服务器
  • Oracle Weblogic Integration Weblogic应用集成服务器
  • Oracle Weblogic Jrockit Weblogic的Java SDK,支持Java SE 6

image-20230306173535345

二、下载Weblogic
1
https://www.oracle.com/middleware/technologies/fusionmiddleware-downloads.html
三、安装JDK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(1)下载JDK
https://www.oracle.com/java/technologies/downloads/#jdk17-linux

(2)安装JDK
[root@server01 soft]# tar xvf jdk-8u321-linux-x64.tar.gz -C /usr/local/
[root@server01 soft]# vim /etc/profile
export JAVA_HOME=/usr/local/jdk1.8.0_321
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

[root@server01 soft]# source /etc/profile

如果使用自带的JDK,则需要配置以下环境变量:
#set java environment java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64
JRE_HOME=$JAVA_HOME/jre
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH

(3)检查安装
[root@server01 ~]# javac -version
javac 1.8.0_321
四、关闭防火墙
1
2
3
[root@server01 ~]# systemctl status firewalld.service
[root@server01 ~]# systemctl stop firewalld.service
[root@server01 ~]# systemctl disable firewalld.service
五、创建Weblogic用户和组
1
2
3
4
[root@server01 ~]# groupadd weblogic
[root@server01 ~]# useradd -g weblogic weblogic

[root@server01 ~]# echo "weblogic" | passwd --stdin weblogic
六、创建weblogic目录
1
2
3
[root@server01 ~]# mkdir /usr/local/weblogic

[root@server01 ~]# chown weblogic.weblogic /usr/local/weblogic
七、设置umask
1
2
3
4
5
6
7
[root@server01 ~]# su - weblogic 

[weblogic@server01 ~]$ vim .bash_profile
umask 027

[weblogic@server01 ~]$ source .bash_profile

八、安装Weblogic
1.控制台文本安装
1
2
3
Windows平台: wls1036_win32.exe -mode=console -Djava.io.tmpdir=C:\Temp 
Unix平台: java -jar wls1036_generic.jar -mode=console -Djava.io.tmpdir=/tmp
64位JDK和64位操作系统: java -d64 -jar wls1036_generic.jar -mode=console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309

[root@server01 ~]# su - weblogic
[weblogic@server01 ~]$ cd /opt/soft

[weblogic@server01 soft]$ java -jar wls1036_generic.jar -mode=console -log=/tmp/weblogic.log
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/weblogic/Oracle/Middleware"]




Enter new Middleware Home OR [Exit][Previous][Next]> /usr/local/weblogic





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

"Middleware Home" = [/usr/local/weblogic]

Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/home/weblogic/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





<-------------------- 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





<-------------------- 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





<-------------------- 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]>





<-------------------- 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|/usr/local/jdk1.8.0_321[x]



*Estimated size of installation: 690.2 MB


Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]>





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/usr/local/weblogic]

Product Installation Directories:


1|WebLogic Server: [/usr/local/weblogic/wlserver_10.3]
2|Oracle Coherence: [/usr/local/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
| |_____UDDI and Xquery Support
| |_____Evaluation Database
|_____Oracle Coherence
|_____Coherence Product Files

*Estimated size of installation: 690.3 MB




Enter [Exit][Previous][Next]>
Feb 07, 2022 5:02:31 PM java.util.prefs.FileSystemPreferences$1 run
INFO: 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 Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]>





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...
[weblogic@server01 soft]$
2.图形界面安装
1
2
3
4
5
6
7
8
9
10
11
[root@server01 ~]# chown weblogic.weblogic /opt/soft/wls1036_generic.jar 
[root@server01 ~]# su - weblogic
[weblogic@server01 ~]$ cd /opt/soft
[weblogic@server01 soft]$ export DISPLAY=10.11.23.94:0.0

[weblogic@server01 soft]$ java -jar wls1036_generic.jar
Extracting 0%....................................................................................................100%


如果不能调出图形界面,检查libXtst库有没有安装:
[root@server01 ~]# yum install libXtst

image-20230303181750622

image-20230303182350341

image-20230303182703578

image-20230303182847303

image-20230303183217494

image-20230303183310309

image-20230303183445363

/user/local/weblogic 中间件位置

/usr/local/weblogic/wlserver_10.3 weblogic server家位置

/usr/local/weblogic/coherence_3.7

image-20230303183544001

image-20230303183617811

image-20230303183644008

3.静默安装
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
准备XML文件配置内容:
<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="D:\Oracle\Middleware_Home" />
<data-value name="WLS_INSTALL_DIR" value="D:\Oracle\Middleware_Home\wlserver_10.3" />
<data-value name="COMPONENT_PATHS"
value="WebLogic Server/Core Application Server|WebLogic Server
/Administration Console|WebLogic Server/Configuration Wizard and Upgrade
Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic
JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server
/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins
|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
<!--节点管理器-->
<data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes" />
<data-value name="NODEMGR_PORT" value="5559" />
<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
<!--
<data-value name="LOCAL_JVMS" value="D:\jrockit_160_29|D:\jdk160_29"/>
-->

</input-fields>
</bea-installer>


修改成以下内容:
[weblogic@server01 ~]$ vim silent.xml

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="/usr/local/weblogic" />
<data-value name="WLS_INSTALL_DIR" value="/usr/local/weblogic/wlserver_10.3" />
<data-value name="COMPONENT_PATHS"
value="WebLogic Server/Core Application Server|WebLogic Server
/Administration Console|WebLogic Server/Configuration Wizard and Upgrade
Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic
JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server
/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins
|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
</input-fields>
</bea-installer>

安装:
[weblogic@server01 ~]$ mkdir /usr/local/weblogic
[weblogic@server01 ~]$ java -jar wls1036_generic.jar -mode=silent -silent_xml=/root/silent.xml
Extracting 0%....................................................................................................100%
The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support

这个错误的原因是因为xml文件内容换行了,需要写在同一行上:
<data-value name="COMPONENT_PATHS"
value="WebLogic Server/Core Application Server|WebLogic Server
/Administration Console|WebLogic Server/Configuration Wizard and Upgrade
Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic
JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server
/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins
|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />

重新修改XML,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="/usr/local/weblogic" />
<data-value name="WLS_INSTALL_DIR" value="/usr/local/weblogic/wlserver_10.3" />
<data-value name="COMPONENT_PATHS"
value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
</input-fields>
</bea-installer>

[weblogic@server01 ~]$ java -jar wls1036_generic.jar -mode=silent -silent_xml=/root/silent.xml
九、卸载weblogic

You can uninstall individual components of your product distribution, or the entire installation. Dependency checking in the uninstall program ensures that the appropriate components are uninstalled.

卸载只需要删除对应的weblogic安装目录即可

1
[weblogic@server01 ~]$ rm -rf /usr/local/weblogic

You can uninstall individual components of your product distribution, or the entire installation. Dependency checking in the uninstall program ensures that the appropriate components are uninstalled.

The uninstall program does not remove the home directory associated with the installation, the JDK, or any user-created WebLogic domains. Only the components that were installed by the installation program can be removed. If you choose to uninstall the entire product, the uninstallation program also removes the product directory associated with the installation unless any of the following is true:

  • The product directory contains user-created configuration or application files. The uninstallation program does not delete user-created configuration files, application files, or domains.
  • The complete installation was not uninstalled. If an individual component is uninstalled, only the installation directory for that component is removed; the installation directories for other components are unaffected.
  • The uninstall program was invoked from within the product directory structure—specifically, from the uninstaller directory.
1.控制台方式卸载

Use the following procedure to uninstall the complete product installation, or individual components, using the command-line interface:

  • Shut down any servers that are running. If any of these servers are configured as a Windows service, you should stop the service(s) before uninstalling the software.

  • Start the uninstall program

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[weblogic@server01 ~]$ cd /usr/local/weblogic/utils/uninstall
[weblogic@server01 uninstall]$ ./uninstall.sh -mode=console
./uninstall.sh: line 11: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/java: No such file or directory

将uninstall.sh脚本"${JAVA_HOME}/bin/java" 修改为 "${JAVA_HOME}/jre/bin/java"

[weblogic@server01 uninstall]$ vim uninstall.sh

#!/bin/sh
# This script assumes WL_HOME is set to the product directory which is the
# target of the uninstall before this script it called.

# Set JAVA Home
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64"

# Set BEA Home
BEAHOME="/usr/local/weblogic"

"${JAVA_HOME}/jre/bin/java" ${JAVA_VM} -Xmx256m -Djava.library.path="${BEAHOME}/utils/uninstall" -Dhome.dir="${BEAHOM
E}" -Dinstall.dir="${WL_HOME}" -jar "${BEAHOME}/utils/uninstall/uninstall.jar" $*

exit $?


[weblogic@server01 uninstall]$ ./uninstall.sh -mode=console
OpenJDK 64-Bit Server VM warning: You have loaded library /usr/local/weblogic/utils/uninstall/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Welcome:


Welcome to the WebLogic Platform 10.3.6.0 uninstaller. If
you wish to proceed with the uninstallation type Next,
otherwise, please type Exit to cancel.


Enter [Exit][Next]>





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Choose Products and Components to uninstall:
--------------------------------------------

Check the components you want to uninstall.

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
| |_____Evaluation Database [1.11] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Next]>





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Setting Up





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Removing Files





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Removing registry entries





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Uninstall Completed Successfully!





<-------------- Oracle Uninstaller - WebLogic Platform 10.3.6.0 -------------->

Uninstallation Complete


Uninstallation of selected components has completed successfully.


Press [Enter] to continue
1
2
删除目录:
rm -rf /usr/local/weblogic
2.图形方式卸载

To run the uninstall program in graphical-mode, your console must support Java-based GUIs. If the uninstallation program determines that your system cannot support Java-based GUIs, it automatically starts running in console mode.

Use the following procedure to uninstall the complete product installation, or individual components, in graphical mode:

  • Shut down any servers that are running. If any of these servers is configured as a Windows service, you should stop the service(s) before uninstalling the software.

  • Start the uninstall program

1
2
3
4
5
6
7
[weblogic@server01 ~]$ export DISPLAY=10.11.23.94:0.0
[weblogic@server01 ~]$ cd /usr/local/weblogic/utils/uninstall
[weblogic@server01 uninstall]# ./uninstall.sh
./uninstall.sh: line 11: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/java: No such file or directory

修改uninstall.sh文件,将uninstall.sh脚本"${JAVA_HOME}/bin/java" 修改为 "${JAVA_HOME}/jre/bin/java"
或按当前JDK安装的路径修改JAVA_HOME

Xmanager_XVqxhAlkNk

Xmanager_QTzNu9mj13

image-20230306140719092

1
2
删除目录:
rm -rf /usr/local/weblogic
3.静默方式卸载

When you run the uninstallation program in silent mode, it leaves behind the same files and directories as when you run the uninstall program in graphical and console modes, including:

  • The home directory, including the logs and utils subdirectories
  • The JDK, if it was installed with your product
  • Domain directories, including those in user_projects
  • Any other file that was created or modified after your software was installed.

You can manually delete these files.

Use the following procedure to uninstall your Products software in silent mode:

  • Shut down any servers that are running. If you configured any of the servers as a Windows service, you must stop the service(s) before uninstalling the software.

  • Start the uninstallation program

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[weblogic@server01 ~]$ cd /usr/local/weblogic/utils/uninstall
[weblogic@server01 uninstall]$ ./uninstall.sh -mode=silent
./uninstall.sh: line 11: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/java: No such file or directory

将uninstall.sh脚本"${JAVA_HOME}/bin/java" 修改为 "${JAVA_HOME}/jre/bin/java"

[weblogic@server01 uninstall]$ vim uninstall.sh

#!/bin/sh
# This script assumes WL_HOME is set to the product directory which is the
# target of the uninstall before this script it called.

# Set JAVA Home
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64"

# Set BEA Home
BEAHOME="/usr/local/weblogic"

"${JAVA_HOME}/jre/bin/java" ${JAVA_VM} -Xmx256m -Djava.library.path="${BEAHOME}/utils/uninstall" -Dhome.dir="${BEAHOM
E}" -Dinstall.dir="${WL_HOME}" -jar "${BEAHOME}/utils/uninstall/uninstall.jar" $*

exit $?

[weblogic@server01 uninstall]$ ./uninstall.sh -mode=silent
十、Weblogic目录结构
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[root@server01 local]# tree -d -L 1 weblogic
weblogic ---中间件家路径
├── coherence_3.7
├── logs ---安装日志路径
├── modules ---安装在中间件中的模块
├── utils ---一些实用程序的jar包
└── wlserver_10.3 ---weblogic server主目录

[root@server01 local]# tree -d -L 2 weblogic
weblogic
├── coherence_3.7
│ ├── bin
│ ├── inventory
│ ├── lib
│ └── uninstall
├── logs
├── modules
│ ├── com.bea.weblogic.jms.dotnetclient_1.3.2.0
│ ├── features
│ ├── junit_1.0.0.0_4-5
│ ├── net.sf.antcontrib_1.1.0.0_1-0b2
│ └── org.apache.ant_1.7.1
├── utils
│ ├── bsu
│ ├── ccr
│ ├── clone
│ ├── config
│ ├── quickstart
│ └── uninstall
└── wlserver_10.3
├── common ---weblogic server共享的组件
├── inventory
├── L10N
├── server ---weblogic server服务器组件路径
├── sip
└── uninstall ---卸载weblogic程序脚本

26 directories



[root@server01 weblogic]# tree wlserver_10.3/common/bin
wlserver_10.3/common/bin
├── commEnv.sh ---设置weblogic server环境变量
├── config_builder.sh ---weblogic server域模板配置助手
├── config.sh ---weblogic server域配置助手
├── pack.sh ---pack/unpack备份weblogic域
├── setPatchEnv.sh
├── startDerby.sh ---启动weblogic自带的数据库derby
├── startManagedWebLogic.sh ---启动weblogic Managed server脚本(受管服务器)
├── stopDerby.sh ---停止weblogic自带的数据库derby
├── unpack.sh
├── upgrade.sh
├── wlscontrol.sh
├── wlsifconfig.sh
└── wlst.sh ---启动wlst(weblogic script tool)命令行工具的脚本,类似于oracle数据库中的sqlplus

十一、域domain
1.域的定义

域是Weblogic管理的基本单元

2.域的组成
3.创建域(命令行方式)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
创建domain可以使用config.sh或quickstart.sh两种方法:
1.使用quickstart.sh
[weblogic@server01 ~]$ export DISPLAY=192.168.1.3:0.0
[weblogic@server01 ~]$ cd /usr/local/weblogic/wlserver_10.3/common/quickstart
[weblogic@server01 quickstart]$ ./quickstart.sh

2.使用config.sh
[weblogic@server01 soft]$ cd /usr/local/weblogic/wlserver_10.3/common/bin/

[weblogic@server01 bin]$ ./config.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Unable to instantiate GUI, defaulting to console mode.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/weblogic/wlserver_10.3/common/lib/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.





<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.

2|Extend an existing WebLogic domain
| Use this option to add new components to an existing domain and modify |configuration settings.





Enter index number to select OR [Exit][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain.

2|Choose custom template
| Choose this option if you want to use an existing template. This
|could be a custom created template using the Template Builder.





Enter index number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------



Available Templates
|_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
|_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

| Name | Value |
_|________|_____________|
1| *Name: | base_domain |




Enter value for "Name" OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

"Target Location" = [Enter new value or use default
"/usr/local/weblogic/user_projects/domains"]




Enter new Target Location OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]> 2





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*User password:" = []




Enter new *User password: OR [Exit][Reset][Accept]> 239131





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ****** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 3





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*Confirm user password:" = []




Enter new *Confirm user password: OR [Exit][Reset][Accept]> 239131





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ****** |
3| *Confirm user password: | ****** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ****** |
3| *Confirm user password: | ****** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes


** CFGFWK-60005: WebLogic domain requires the password to be minimum 8
** characters




Enter option number to select OR [Exit][Previous][Next]> 2





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*User password:" = [******]




Enter new *User password: OR [Exit][Reset][Accept]> 61604888





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ****** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 3





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*Confirm user password:" = [******]




Enter new *Confirm user password: OR [Exit][Reset][Accept]> 61604888





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

->1|Development Mode

2|Production Mode




Enter index number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

->1|Sun SDK 1.8.0_321 @ /usr/local/jdk1.8.0_321
2|Other Java SDK




Enter index number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

1|Administration Server [ ]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]> 1





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The
Administration Server is used to perform administrative tasks.

| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"




Enter option number to select OR [Exit][Previous][Next]>





<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****


[weblogic@server01 bin]$





<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Creation Failed! java.lang.SecurityException: The provider self-integrity check failed. ****

域创建失败解决方法:
[weblogic@web01 ~]$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

JDK不支持,使用JDK1.7后问题解决

删除一个domian >

  1. [weblogic@11g servers]$ rm -rf /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/

  2. 编辑domain-registry.xml文件 删除这个domain的配置信息
    [weblogic@11g servers]$ vi /home/weblogic/Oracle/Middleware/domain-registry.xml

](http://xmlns.oracle.com/weblogic/domain-registry)

删除红色部分

3.

删除位于\wlserver_10.3\common\nodemanager之下

nodemanager.domains中有关该domain的条目

#Domains and directories created by Configuration Wizard
#Fri Apr 06 13:09:46 CST 2012
base_domain=D:\Oracle\middleware\user_projects\domains\base_domain
bifoundation_domain=D:\Oracle\middleware\user_projects\domains\bifoundation_domain

删除红色部分

至此,domain已经彻底的被移除了。

注:删除domain不需要更改Metadata Service (MDS)

4.创建域(图形方式)
1
2
3
[weblogic@server01 ~]$ cd /usr/local/weblogic/wlserver_10.3/common/bin
[weblogic@server01 bin]$ export DISPLAY=10.11.23.94:0.0
[weblogic@server01 bin]$ ./config.sh

image-20230307094159972

image-20230307095921363

image-20230307100026260

image-20230307100236520

密码设为: welcome1

image-20230307100806592

1
2
3
4
5
6
7
8
9
10
域的两种模式:
1.开发模式
开发模式下只有一个Adminserver
开发模式下可以实现应用程序的自动部署
开发模式下有多个被管服务器,不需要输入密码

2.生产模式
可以有多个Server、多个Cluster
生产模式下不可以自动部署
生产模式被管服务器需要输入密码

image-20230307101504685

RDBMS Security Store: 连接池

image-20230307101653747

image-20230307102149245

代理服务器需要给出一个明确的IP地址

image-20230307102447083

image-20230307102631274

image-20230307102717881

image-20230307102751183

image-20230307102828366

image-20230307103000362

image-20230307103026811

5.域的目录结构
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[root@server01 domains]# tree -d -L 2 base_domain/
base_domain/
├── apps
│ └── OracleProxy4_cluster1_proxyServer
├── autodeploy ---实现自动部署,必须是开发模式,只能将应用部署到AdminServer上
├── bin ---域的脚本
│ ├── nodemanager
│ ├── server_migration
│ └── service_migration
├── config ---域的所有配置文件,核心配置文件: config.xml
│ ├── deployments
│ ├── diagnostics
│ ├── jdbc
│ ├── jms
│ ├── nodemanager
│ ├── security
│ └── startup
├── console-ext ---控制台的扩展
├── init-info
├── lib
├── security
└── servers ---所有Server的路径
└── AdminServer

21 directories

[root@server01 bin]# pwd
/usr/local/weblogic/user_projects/domains/base_domain/bin
[root@server01 bin]# tree
.
├── nodemanager
│ └── wlscontrol.sh
├── server_migration
│ └── wlsifconfig.sh
├── service_migration
│ └── readme.txt
├── setDomainEnv.sh ---设置域的环境变量,修改内存参数USER_MEM_ARGS=Xms100M -Xmx200M,默认内存是512M
PRODUCTION_MODE设置域是开发模式还是生产模式,TRUE为生产,FALSE为开发
JAVA_OPTIONS=Dfile.encoding=UTF-8 $JAVA_OPTIONS
注意: 写在该的文件的最后
├── startManagedWebLogic.sh
├── startWebLogic.sh ---启动域--->就是启动管理服务器AdminServer
├── stopManagedWebLogic.sh ---启动被管服务器
└── stopWebLogic.sh

3 directories, 8 files
十二、启动或停止domain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[weblogic@server01 ~]$ cd /usr/local/weblogic/user_projects/domains/base_domain/bin/

[weblogic@server01 ~]$ nohup ./startWebLogic.sh &

The JRE was not found in directory /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64. (JAVA_HOME)
Please edit your environment and set the JAVA_HOME
variable to point to the root directory of your Java installation.

将JAVA_HOME修改为JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/jre"
[weblogic@server02 bin]$ vim setDomainEnv.sh

if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="N/A"
export JAVA_VENDOR
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/jre"
export JAVA_HOME
fi
fi



[weblogic@server01 ~]$ ./stopWebLogic.sh &
十三、登录控制台
1
http://192.168.1.181:7001/console
十四、安装后检查
1.检查当前使用哪个JDK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[weblogic@server01 ~]$ java -version
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)

If you are using JRockit, JRockit(R) is displayed in the output.


[weblogic@server01 ~]$ cd /usr/local/weblogic/wlserver_10.3/server/bin
[weblogic@server01 bin]$ ./setWLSEnv.sh
CLASSPATH=/usr/local/weblogic/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/weblogic/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/jdk1.8.0_321/lib/tools.jar:/usr/local/weblogic/wlserver_10.3/server/lib/weblogic_sp.jar:/usr/local/weblogic/wlserver_10.3/server/lib/weblogic.jar:/usr/local/weblogic/modules/features/weblogic.server.modules_10.3.6.0.jar:/usr/local/weblogic/wlserver_10.3/server/lib/webservices.jar:/usr/local/weblogic/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/usr/local/weblogic/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:.:/usr/local/jdk1.8.0_321/lib/dt.jar:/usr/local/jdk1.8.0_321/lib/tools.jar

PATH=/usr/local/weblogic/wlserver_10.3/server/bin:/usr/local/weblogic/modules/org.apache.ant_1.7.1/bin:/usr/local/jdk1.8.0_321/jre/bin:/usr/local/jdk1.8.0_321/bin:/usr/local/jdk1.8.0_321/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/weblogic/.local/bin:/home/weblogic/bin:/home/weblogic/.local/bin:/home/weblogic/bin

Your environment has been set.
2.QuickStart使用
1
2
3
[weblogic@server01 ~]$ export DISPLAY=192.168.1.3:0.0
[weblogic@server01 ~]$ cd /usr/local/weblogic/wlserver_10.3/common/quickstart
[weblogic@server01 quickstart]$ ./quickstart.sh
  • Title: Weblogic11g 10.3.6安装
  • Author: 𝓓𝓸𝓷
  • Created at : 2024-06-08 16:33:17
  • Updated at : 2024-07-20 05:15:41
  • Link: https://www.zhangdong.me/weblogic-installation.html
  • License: This work is licensed under CC BY-NC-SA 4.0.
评论