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".
准备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>
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.
[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
[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'.
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.
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]>
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
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.
[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
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'.
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.
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]>
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
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
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]>
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
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
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]>
#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
[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